RSS Links

 

Here are all of the RSS links for sections of this site

VB.NET/ASP.NET
 Java
 Unix/Linux
 Windows
 SQL Server

Home arrow SQL Server arrow How do I list all of the identity columns in a SQL Server database
How do I list all of the identity columns in a SQL Server database PDF Print E-mail
Wednesday, 31 December 2008

SELECT OBJECT_NAME(OBJECT_ID) AS TABLENAME,
NAME AS COLUMNNAME,
SEED_VALUE,
INCREMENT_VALUE,
LAST_VALUE,
IS_NOT_FOR_REPLICATION
FROM SYS.IDENTITY_COLUMNS
ORDER BY 1

Thanks to the Edgewood Solutions Engineers at mssqltips.com - more information at http://www.mssqltips.com/tip.asp?tip=1123

Last Updated ( Wednesday, 31 December 2008 )
 
< Prev   Next >
 
Designed by Graham Robinson Software