• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 247
  • Last Modified:

Identity Seed value

Is there a way to set, on a database basis, the seed value and increment for identity columns?    

Also, I have a set of tables that at some point the seed value seems to have been set to 10000, with increment of 1.   Can a backup/restore cause this?    Can this easily be done, inadvertently?
1 Solution
lcohanDatabase AnalystCommented:
This is how to do it: http://technet.microsoft.com/en-us/library/ms176057(v=sql.100).aspx

<< Can a backup/restore cause this? >>

A restore yes, however that is unlikely to go silent in my opinion as you must restore the entire database since 2000 and up.

yes, we can achieve customize script or settings (also with DBCC CHECKIDENT).

Could you please let us know exactly, what do you want based on that will create small snippet and will share with you?

Best Regards,
Mohit Pandit
HLRosenbergerAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now