Click here to Skip to main content
15,918,889 members
Home / Discussions / C#
   

C#

 
GeneralRe: Get max value of primary key before doing insert into database Pin
xdavidx1-Sep-08 12:57
xdavidx1-Sep-08 12:57 
AnswerRe: Get max value of primary key before doing insert into database Pin
Guffa1-Sep-08 14:12
Guffa1-Sep-08 14:12 
AnswerRe: Get max value of primary key before doing insert into database Pin
Paul Conrad1-Sep-08 12:46
professionalPaul Conrad1-Sep-08 12:46 
AnswerRe: Get max value of primary key before doing insert into database Pin
PIEBALDconsult1-Sep-08 13:38
mvePIEBALDconsult1-Sep-08 13:38 
GeneralRe: Get max value of primary key before doing insert into database Pin
xdavidx1-Sep-08 14:10
xdavidx1-Sep-08 14:10 
GeneralRe: Get max value of primary key before doing insert into database Pin
PIEBALDconsult1-Sep-08 14:17
mvePIEBALDconsult1-Sep-08 14:17 
AnswerRe: Get max value of primary key before doing insert into database Pin
darkelv1-Sep-08 17:15
darkelv1-Sep-08 17:15 
AnswerRe: Get max value of primary key before doing insert into database Pin
Pete O'Hanlon2-Sep-08 3:52
mvePete O'Hanlon2-Sep-08 3:52 
Normally, when you want to do this type of thing you need to create your own Sequence table, which contains the Next ID that you want to use. Then inside a transaction, you update the row to add 1 to it, and retrieve it, before committing it. You must do this in that order, so that no other user can get access to the record while you are working with it.

Deja View - the feeling that you've seen this post before.

My blog | My articles



QuestionHow Do I Make A Window Flash at the Bottom of the Screen? Pin
That Asian Guy1-Sep-08 10:14
That Asian Guy1-Sep-08 10:14 
AnswerRe: How Do I Make A Window Flash at the Bottom of the Screen? Pin
Perspx1-Sep-08 10:22
Perspx1-Sep-08 10:22 
GeneralRe: How Do I Make A Window Flash at the Bottom of the Screen? Pin
That Asian Guy1-Sep-08 10:29
That Asian Guy1-Sep-08 10:29 
QuestionWindows Application Deployment Help needed Pin
sathishdevan1-Sep-08 8:04
sathishdevan1-Sep-08 8:04 
AnswerRe: Windows Application Deployment Help needed Pin
Wendelius1-Sep-08 10:29
mentorWendelius1-Sep-08 10:29 
QuestionApplication freezes during e-mailsending proces Pin
NewToAspDotNet1-Sep-08 4:58
NewToAspDotNet1-Sep-08 4:58 
AnswerRe: Application freezes during e-mailsending proces Pin
Manas Bhardwaj1-Sep-08 4:59
professionalManas Bhardwaj1-Sep-08 4:59 
AnswerRe: Application freezes during e-mailsending proces Pin
leppie1-Sep-08 5:41
leppie1-Sep-08 5:41 
Questioncancel mouse click on a control Pin
Robske1-Sep-08 4:57
Robske1-Sep-08 4:57 
AnswerRe: cancel mouse click on a control Pin
PIEBALDconsult1-Sep-08 5:42
mvePIEBALDconsult1-Sep-08 5:42 
AnswerRe: cancel mouse click on a control Pin
toraj581-Sep-08 8:58
toraj581-Sep-08 8:58 
AnswerRe: cancel mouse click on a control Pin
Robske1-Sep-08 20:48
Robske1-Sep-08 20:48 
QuestionHow to Drag and Drop the Button Control using WPF (C Sharp) Pin
bruze1-Sep-08 4:47
bruze1-Sep-08 4:47 
AnswerRe: How to Drag and Drop the Button Control using WPF (C Sharp) Pin
Manas Bhardwaj1-Sep-08 5:01
professionalManas Bhardwaj1-Sep-08 5:01 
QuestionSerialization load/save getting a different HashCode.... Pin
Guilherme Morais1-Sep-08 3:26
Guilherme Morais1-Sep-08 3:26 
AnswerRe: Serialization load/save getting a different HashCode.... Pin
Natza Mitzi1-Sep-08 3:56
Natza Mitzi1-Sep-08 3:56 
GeneralRe: Serialization load/save getting a different HashCode.... Pin
leppie1-Sep-08 5:40
leppie1-Sep-08 5:40 

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.