views:

26

answers:

1

Does anyone know if there is a way I can get a database's max RowVersion value? The database I am using is SQL Server 2008.

Thanks.

+2  A: 

Are you looking from @@DBTS, which is the last used value? The variable name still references the deprecated TIMESTAMP (TS part) data type but it's the ROWVERSION last value.

SELECT @@DBTS
bobs
Yes, I think this is what I want. Thanks.
frostred
Basicaly I want to check if a database has been changed since last time. So I remember the RowVersion value I made a check last time, and compare it with current value.
frostred
Yep. I think you're on the right track.
bobs