Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL Server database max row RowVersion

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.

like image 335
frostred Avatar asked Oct 20 '10 22:10

frostred


1 Answers

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
like image 93
bobs Avatar answered Dec 21 '22 03:12

bobs