Click here to Skip to main content
15,887,936 members
Home / Discussions / C#
   

C#

 
QuestionAuto-increment value on UPDATE Pin
Dewald31-Jan-12 21:41
Dewald31-Jan-12 21:41 
AnswerRe: Auto-increment value on UPDATE Pin
Pete O'Hanlon31-Jan-12 22:15
mvePete O'Hanlon31-Jan-12 22:15 
GeneralRe: Auto-increment value on UPDATE Pin
Dewald31-Jan-12 22:29
Dewald31-Jan-12 22:29 
AnswerRe: Auto-increment value on UPDATE Pin
Łukasz Nowakowski31-Jan-12 22:16
Łukasz Nowakowski31-Jan-12 22:16 
AnswerRe: Auto-increment value on UPDATE Pin
Abhinav S1-Feb-12 0:32
Abhinav S1-Feb-12 0:32 
GeneralRe: Auto-increment value on UPDATE Pin
Dewald1-Feb-12 0:49
Dewald1-Feb-12 0:49 
AnswerRe: Auto-increment value on UPDATE Pin
Abhinav S1-Feb-12 19:55
Abhinav S1-Feb-12 19:55 
AnswerRe: Auto-increment value on UPDATE Pin
David Skelly1-Feb-12 2:31
David Skelly1-Feb-12 2:31 
One thing to bear in mind: GETDATE isn't particularly accurate at the millisecond level. Although the datetime datatype is accurate to about 3 milliseconds, GETDATE does not give you that level of precision, as far as I can gather from a quick google it is somewhere around 15ms although things like machine load can affect it. If you are expecting to do repeated updates to the same row within a very short time period, this may not give you unique values for your Modified column. If your rows will not be updated that frequently, then it's not a problem.

I thought SQL Server supported the ability to automatically timestamp rows when they were updated. The timestamp is just a meaningless number but at least you can check whether a row is the version you expect it to be, and you can also tell the order in which updates were applied.

(I'm assuming SQL Server since you haven't said what database you are using.)
QuestionTaskbar Notifier and Windows 7 Pin
Anfai Inyotu31-Jan-12 12:45
Anfai Inyotu31-Jan-12 12:45 
AnswerRe: Taskbar Notifier and Windows 7 Pin
OriginalGriff31-Jan-12 20:58
mveOriginalGriff31-Jan-12 20:58 
GeneralRe: Taskbar Notifier and Windows 7 Pin
Anfai Inyotu1-Feb-12 5:30
Anfai Inyotu1-Feb-12 5:30 
QuestionHow to Receive Messages Without a Window [SOLVED] Pin
Richard Andrew x6431-Jan-12 11:42
professionalRichard Andrew x6431-Jan-12 11:42 
AnswerRe: How to Receive Messages Without a Window Pin
Luc Pattyn31-Jan-12 11:46
sitebuilderLuc Pattyn31-Jan-12 11:46 
GeneralRe: How to Receive Messages Without a Window Pin
Richard Andrew x6431-Jan-12 12:00
professionalRichard Andrew x6431-Jan-12 12:00 
AnswerRe: How to Receive Messages Without a Window Pin
Luc Pattyn31-Jan-12 12:05
sitebuilderLuc Pattyn31-Jan-12 12:05 
GeneralRe: How to Receive Messages Without a Window Pin
Luc Pattyn31-Jan-12 12:08
sitebuilderLuc Pattyn31-Jan-12 12:08 
Question.NET dll late binding Pin
Blubbo31-Jan-12 8:11
Blubbo31-Jan-12 8:11 
AnswerRe: .NET dll late binding Pin
Blubbo31-Jan-12 8:48
Blubbo31-Jan-12 8:48 
AnswerRe: .NET dll late binding Pin
Luc Pattyn31-Jan-12 9:43
sitebuilderLuc Pattyn31-Jan-12 9:43 
GeneralRe: .NET dll late binding Pin
Shameel31-Jan-12 18:56
professionalShameel31-Jan-12 18:56 
GeneralRe: .NET dll late binding Pin
BobJanova2-Feb-12 4:57
BobJanova2-Feb-12 4:57 
GeneralRe: .NET dll late binding Pin
Blubbo1-Feb-12 7:01
Blubbo1-Feb-12 7:01 
AnswerRe: .NET dll late binding Pin
Abhinav S31-Jan-12 19:42
Abhinav S31-Jan-12 19:42 
AnswerRe: .NET dll late binding Pin
BobJanova2-Feb-12 5:02
BobJanova2-Feb-12 5:02 
GeneralRe: .NET dll late binding Pin
Blubbo2-Feb-12 5:07
Blubbo2-Feb-12 5:07 

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.