I am trying to run a query to check if a column auto increments. I can check type, default value, if it\'s nullable or not, etc. but I can\'t figure out how to test if it au
Select COLUMN_NAME, TABLE_NAME
from INFORMATION_SCHEMA.COLUMNS
where TABLE_SCHEMA = 'dbo'
and COLUMNPROPERTY(object_id(TABLE_NAME), COLUMN_NAME, 'IsIdentity') = 1
order by TABLE_NAME