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

Database

 
GeneralReturning a unique value Pin
Vicetta15-Jun-04 4:00
Vicetta15-Jun-04 4:00 
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 
bkpetluru wrote:
How about this?
Instead of having two procedures for a simple task, have a single procedure which will check if the record is existing. If exists, update else insert. And finally this procedure can return you a status if you want to know if the record is inserted or udpated.




Bhaskara



How can I check whether the data I would like to enter exist in the table or not.

For example, the primary key I would like to enter is 123. How do I check if this primary key already exist?

Please kindly guide me.

Thank you very much in advance.
GeneralRe: Inserting & Updating A Row With Unique Key Pin
VenkatFor.NET21-Jun-04 17:46
VenkatFor.NET21-Jun-04 17:46 
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 

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.