What I’d like to be able to do in SQL Server 2005 somehow is with a table name as input determine all the fields that make up the primary key. sp_columns doesn’t seem to have this field. Any ideas as to where to look?
What I’d like to be able to do in SQL Server 2005 somehow is
Share
I use this in a code generator I wrote to get the primary key: