Stored procedure sp_help tells you which column in a table is identity.Looking at the code from that proc, you might come up with this:select IDENTITY_COLUMNS = b.name+'.'+a.namefrom syscolumns a join sysobjects b on a.id = b.idwhere a.colstat & 1 = 1 and b.type = 'u'order by 1
There is also this:select *from INFORMATION_SCHEMA.COLUMNS awhere columnproperty(object_id(a.TABLE_SCHEMA+'.'+a.TABLE_NAME),a.COLUMN_NAME,'IsIdentity') = 1
CODO ERGO SUM