Is TimeStamp
unique in all rows?
Does it have a unique index on it?
The docs says
unique binary numbers within a database
But in practice you can run into situations where this statement is not true. Since the value is generated from a database global counter
you might run into problems when restoring databases and or using timestamp
in tables in tempdb
.
You can see the next value:
Select @@DBTS
Until SQL Server 2000 there was an undocumented command to change the value
DBCC CHECKDBTS (dbId, newTimestamp)
To change the timestamp in non ancient verswions of SQL server see this answer:
https://dba.stackexchange.com/a/11088/149485