/ Published in: SQL

Thanks to Pinal Dave (http://blog.SQLAuthority.com).
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
SELECT IDENT_SEED(TABLE_NAME) AS Seed, IDENT_INCR(TABLE_NAME) AS INCREMENT, IDENT_CURRENT(TABLE_NAME) AS Current_Identity, TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE OBJECTPROPERTY(OBJECT_ID(TABLE_NAME), 'TableHasIdentity') = 1 AND TABLE_TYPE = 'BASE TABLE'
Comments
