DBCC CHECKIDENT


Question

Which command is used reseed the identity value?

Answer

DBCC CHECKIDENT can be used to manually set a new current identity value for the identity column.
DBCC CHECKIDENT ("Sales.ProductType", RESEED, 10);

Comments

Popular posts from this blog

Polymorphism concept

What is ACID properties and How SQL Server Comply to the same

bulk insert into sqlserver using textfile