Click here to Skip to main content
15,921,548 members
Home / Discussions / Database
   

Database

 
GeneralRe: Returning a unique value Pin
Mike Ellison15-Jun-04 14:18
Mike Ellison15-Jun-04 14:18 
GeneralRe: Returning a unique value Pin
Vicetta15-Jun-04 22:41
Vicetta15-Jun-04 22:41 
GeneralInserting & Updating A Row With Unique Key Pin
sanjaysagrawal15-Jun-04 2:45
sanjaysagrawal15-Jun-04 2:45 
GeneralRe: Inserting & Updating A Row With Unique Key Pin
VenkatFor.NET15-Jun-04 5:14
VenkatFor.NET15-Jun-04 5:14 
GeneralRe: Inserting & Updating A Row With Unique Key Pin
nbhairav12315-Jun-04 5:19
nbhairav12315-Jun-04 5:19 
GeneralRe: Inserting & Updating A Row With Unique Key Pin
Anonymous21-Jun-04 12:56
Anonymous21-Jun-04 12:56 
GeneralRe: Inserting & Updating A Row With Unique Key Pin
Antonius_r321-Jun-04 12:57
Antonius_r321-Jun-04 12:57 
GeneralRe: Inserting & Updating A Row With Unique Key Pin
VenkatFor.NET21-Jun-04 17:46
VenkatFor.NET21-Jun-04 17:46 
see if you can autogenerate your primary key, instead of allowing to enter it manually. This would make sure that the data you are gonna insert would not be duplicate.

to answer your query,
one way of checking if primary key already exists is to use select count(*) query.

Bhaskara
GeneralRe: Inserting & Updating A Row With Unique Key Pin
Steven Campbell15-Jun-04 16:03
Steven Campbell15-Jun-04 16:03 
GeneralRe: Inserting & Updating A Row With Unique Key Pin
nbhairav12316-Jun-04 4:36
nbhairav12316-Jun-04 4:36 
QuestionMultiple definitions of SqlConnection??? Pin
matthias s.15-Jun-04 2:13
matthias s.15-Jun-04 2:13 
GeneralSqlExceltion.Number not what I expected Pin
Colin Angus Mackay15-Jun-04 0:28
Colin Angus Mackay15-Jun-04 0:28 
GeneralRe: SqlExceltion.Number not what I expected Pin
Steven Campbell15-Jun-04 15:55
Steven Campbell15-Jun-04 15:55 
GeneralRe: SqlExceltion.Number not what I expected Pin
Colin Angus Mackay15-Jun-04 20:35
Colin Angus Mackay15-Jun-04 20:35 
QuestionGetting data from MySQL db in ASP.NET? Pin
anderslundsgard15-Jun-04 0:13
anderslundsgard15-Jun-04 0:13 
AnswerRe: Getting data from MySQL db in ASP.NET? Pin
Colin Angus Mackay15-Jun-04 0:20
Colin Angus Mackay15-Jun-04 0:20 
Questionhow i can add two diffrent time Pin
syed saba14-Jun-04 22:10
syed saba14-Jun-04 22:10 
AnswerRe: how i can add two diffrent time Pin
Steven Campbell15-Jun-04 15:48
Steven Campbell15-Jun-04 15:48 
GeneralRe: how i can add two diffrent time Pin
syed saba15-Jun-04 19:07
syed saba15-Jun-04 19:07 
GeneralCreate report based on sql string Pin
Mekong River14-Jun-04 5:37
Mekong River14-Jun-04 5:37 
GeneralUsage of SqlDataAdapter .... Pin
sanjaysagrawal14-Jun-04 4:45
sanjaysagrawal14-Jun-04 4:45 
GeneralRe: Usage of SqlDataAdapter .... Pin
VenkatFor.NET14-Jun-04 5:04
VenkatFor.NET14-Jun-04 5:04 
GeneralRe: Usage of SqlDataAdapter .... Pin
nbhairav12314-Jun-04 5:15
nbhairav12314-Jun-04 5:15 
GeneralRe: Usage of SqlDataAdapter .... Pin
VenkatFor.NET14-Jun-04 5:24
VenkatFor.NET14-Jun-04 5:24 
GeneralPulling the latest entry for a product BY DATE from a table Pin
lostsheep00714-Jun-04 2:49
lostsheep00714-Jun-04 2:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.