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
sp_columns
In SQL2005 this brings back a row that names the primary key and then gives a list of the column under "index_keys"
sp_help myTable