Skip to content
Advertisement

Determine a table’s primary key using TSQL

I’d like to determine the primary key of a table using TSQL (stored procedure or system table is fine). Is there such a mechanism in SQL Server (2005 or 2008)?

Advertisement

Answer

This should get you started:

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement