使用存储过程重置sqlsever中列标识的种子

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用存储过程重置sqlsever中列标识的种子相关的知识,希望对你有一定的参考价值。

using this code in a stored procedure you can reset the seed of the identity column in sql server database
  1. @seed INT
  2. AS
  3. DBCC CHECKIDENT (Lease,RESEED,@seed)
  4. RETURN

以上是关于使用存储过程重置sqlsever中列标识的种子的主要内容,如果未能解决你的问题,请参考以下文章