How to determine the primary key for a table in SQL Server?

后端 未结 8 2019
小蘑菇
小蘑菇 2020-12-16 07:13

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

8条回答
  •  我在风中等你
    2020-12-16 07:29

    I normally find that...

    sp_help 

    gives me all I need to know about a table (including index information).

    提交回复
    热议问题