B
Bob Day
Using VS 2003, VB.Net, MSDE....
Question 1) Can DateTime be used as a unique index?
Looking at a table's data via Server Explorer, someting like "Now" is only
displayed to the
second, but is it acually stored to the millisecond? Do all computations
calculate to the millisecond?
Either way, it would seem that this would not be a unique index, because two
updates could occur in the same second (or even millisecond).
I have tried things like the following, but they do not create unique
indexes.
Dim Unique_Index As String = Nothing
With Now
Unique_Index = .Year & .Month & .Day & .Hour & .Minute & .Second &
..Millisecond
Unique_Index = .Ticks
End With
Thanks!
Bob
Question 1) Can DateTime be used as a unique index?
Looking at a table's data via Server Explorer, someting like "Now" is only
displayed to the
second, but is it acually stored to the millisecond? Do all computations
calculate to the millisecond?
Either way, it would seem that this would not be a unique index, because two
updates could occur in the same second (or even millisecond).
I have tried things like the following, but they do not create unique
indexes.
Dim Unique_Index As String = Nothing
With Now
Unique_Index = .Year & .Month & .Day & .Hour & .Minute & .Second &
..Millisecond
Unique_Index = .Ticks
End With
Thanks!
Bob