This piece of T-SQL displays all the identity columns in all the tables in a Database.
Use Adventureworks
Go
Select o.name, i.name As 'ColumnName'
From sys.identity_columns i, sys.objects o
Where i.object_id = o.object_id
Go
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment