This will list out identity columns in a Database. This is compatible to SQL 2005 only.
select a.name as ColumnName,b.name as tableName from sys.columns a, sys.tables b
where a.object_id = b.object_id and a.is_identity = 1
Your email address will not be published. Required fields are marked *
CAPTCHA Code *