SQL Clone
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Compare Current IDENTITY Value to DataType's Boundary

By Arthur Gimpel,

Execute the script on the DB which contains IDENTITY property on large tables.

It will return data type usage percent of the identity seed per table, with the actual numbers included.

Note: The last statement querying the temp tables uses FORMAT() funcation which works only on SQL Server 2012+.

Total article views: 564 | Views in the last 30 days: 1