July 10, 2012 at 12:46 pm
How to check if column has set to identity??
July 10, 2012 at 12:50 pm
one way is to look at sys.columns, which has an is_identity indicator:
select
object_name(object_id) as TableName,
name As ColumnName,
is_identity
from sys.columns
Lowell
July 10, 2012 at 12:53 pm
Lowell (7/10/2012)
one way is to look at sys.columns, which has an is_identity indicator:
select
object_name(object_id) as TableName,
name As ColumnName,
is_identity
from sys.columns
nice script lowell.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
July 10, 2012 at 12:55 pm
Thank you!!
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply