Click here to Skip to main content
14,828,424 members
Home / Discussions / C#
   

C#

 
QuestionmdiChild Form Pin
zeeShan anSari6-Jul-08 1:28
MemberzeeShan anSari6-Jul-08 1:28 
AnswerRe: mdiChild Form Pin
DaveyM696-Jul-08 1:38
professionalDaveyM696-Jul-08 1:38 
GeneralRe: mdiChild Form Pin
zeeShan anSari6-Jul-08 1:54
MemberzeeShan anSari6-Jul-08 1:54 
QuestionHow to lock record when inserting Pin
dabuskol5-Jul-08 23:33
Memberdabuskol5-Jul-08 23:33 
AnswerRe: How to lock record when inserting Pin
Nader Elshehabi6-Jul-08 0:29
MemberNader Elshehabi6-Jul-08 0:29 
GeneralRe: How to lock record when inserting Pin
dabuskol6-Jul-08 1:01
Memberdabuskol6-Jul-08 1:01 
GeneralRe: How to lock record when inserting Pin
Nader Elshehabi6-Jul-08 1:13
MemberNader Elshehabi6-Jul-08 1:13 
AnswerRe: How to lock record when inserting Pin
Pete O'Hanlon6-Jul-08 11:09
mvePete O'Hanlon6-Jul-08 11:09 
If you can't use an identity column, a common pattern is to have a sequence table that contains the next sequence number for your table. Then, your code creates a transaction, updates the table to add 1 to the sequence number and then select from the table. The trick here is that the transactional update will lock the sequence row and then you select the record to retrieve this value - the beauty here is that the update lock prevents anybody else getting to the record until you commit the transaction.

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

My blog | My articles



QuestionQuestion about running threads in C# Pin
Yanshof5-Jul-08 21:46
MemberYanshof5-Jul-08 21:46 
AnswerRe: Question about running threads in C# Pin
Nader Elshehabi6-Jul-08 0:50
MemberNader Elshehabi6-Jul-08 0:50 
QuestionEditing DataGridViewImageCell? Pin
anton-095-Jul-08 19:34
Memberanton-095-Jul-08 19:34 
AnswerRe: Editing DataGridViewImageCell? Pin
Nader Elshehabi6-Jul-08 0:54
MemberNader Elshehabi6-Jul-08 0:54 
QuestionVS2005 whether there are similar delphi in the control Notebook Pin
ChinaTJBoy5-Jul-08 17:54
MemberChinaTJBoy5-Jul-08 17:54 
AnswerRe: VS2005 whether there are similar delphi in the control Notebook Pin
Nader Elshehabi6-Jul-08 0:20
MemberNader Elshehabi6-Jul-08 0:20 
Questionhow to change DataGridView Event calling sequence Pin
Xmen Real 5-Jul-08 17:49
professional Xmen Real 5-Jul-08 17:49 
AnswerRe: how to change DataGridView Event calling sequence Pin
Nader Elshehabi6-Jul-08 0:18
MemberNader Elshehabi6-Jul-08 0:18 
GeneralRe: how to change DataGridView Event calling sequence Pin
Xmen Real 6-Jul-08 0:23
professional Xmen Real 6-Jul-08 0:23 
GeneralRe: how to change DataGridView Event calling sequence Pin
Nader Elshehabi6-Jul-08 1:03
MemberNader Elshehabi6-Jul-08 1:03 
GeneralRe: how to change DataGridView Event calling sequence Pin
Xmen Real 6-Jul-08 2:26
professional Xmen Real 6-Jul-08 2:26 
GeneralRe: how to change DataGridView Event calling sequence Pin
Nader Elshehabi6-Jul-08 2:52
MemberNader Elshehabi6-Jul-08 2:52 
GeneralRe: how to change DataGridView Event calling sequence Pin
Xmen Real 6-Jul-08 2:55
professional Xmen Real 6-Jul-08 2:55 
GeneralRe: how to change DataGridView Event calling sequence Pin
Xmen Real 6-Jul-08 5:39
professional Xmen Real 6-Jul-08 5:39 
QuestionWhat are your suggestions ? Pin
Mohammad Dayyan5-Jul-08 14:24
MemberMohammad Dayyan5-Jul-08 14:24 
AnswerRe: What are your suggestions ? Pin
Christian Graus5-Jul-08 15:40
protectorChristian Graus5-Jul-08 15:40 
GeneralRe: What are your suggestions ? Pin
Mohammad Dayyan5-Jul-08 16:21
MemberMohammad Dayyan5-Jul-08 16:21 

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.