Reset Autonumber Or Identity Column In Sql Server Transact SQL
Here is the script to reset autonumbers in sql server. Usually, i have to delete the table contents and then reseed the tables.
TSQL Script:
TSQL Script:
use Transmittal go delete from dbo.TransDetails; delete from dbo.TransMaster; DBCC CHECKIDENT (TransMaster, reseed, 0) DBCC CHECKIDENT (TransDetails, reseed, 0)
Comments
Post a Comment