Viewing 2 posts - 1 through 2 (of 2 total)
This will do it for a specific database. cheers .
SELECT sysobjects.name as 'Table Name', syscolumns.NAME AS 'Identiy Column Name'
FROM syscolumns, sysobjects
WHERE syscolumns.ID = sysobjects.ID...
April 22, 2004 at 3:53 am
#503775
The AUTOVAL column of the syscolumns table is NOT NULL if the column has the identity on. The following query illustrate an exampe. In combination with information in the view INFORMATION_SCHEMA.COLUMNS you can...
April 22, 2004 at 3:06 am
#503770