Home  • Database • Microsoft SQL Server

Identity column start from a specified number

Changing the Identity Seed
DBCC checkident ('Employees', reseed, 1000)
The next row inserted will begin at 1001. Repairing the Identity Seed in case of duplication
DBCC checkident ('Employees', reseed)
Retrieving current Identity Seed
DBCC checkident ('Employees')

Comments 0


Share

Copyright © 2024. Powered by Intellect Software Ltd