DBCC CHECKIDENT Sets Identity to 0

前端 未结 10 1310
长发绾君心
长发绾君心 2020-12-07 21:55

I\'m using this code to reset the identity on a table:

DBCC CHECKIDENT(\'TableName\', RESEED, 0)

This works fine most of the time, with the f

10条回答
  •  时光取名叫无心
    2020-12-07 22:28

    USE AdventureWorks2012;  
    GO  
    DBCC CHECKIDENT ('Person.AddressType', RESEED, 0);  
    GO 
    
    
    
    AdventureWorks2012=Your databasename
    Person.AddressType=Your tablename
    

提交回复
热议问题