How do I determine if a column is an identity column in MSSQL 2000?

后端 未结 5 1137
感情败类
感情败类 2021-02-05 01:47

I want to do this in code, not with ALT+F1.

5条回答
  •  北荒
    北荒 (楼主)
    2021-02-05 02:50

    sp_help tablename 
    

    In the output look for something like this:

     Identity     Seed     Increment     Not For Replication    
     -----------  -------  ------------  ---------------------- 
     userid       15500    1             0        
    

提交回复
热议问题