Solved

Identity Seed value

Posted on 2013-10-24
3
207 Views
Last Modified: 2013-11-08
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?
0
Comment
Question by:HLRosenberger
3 Comments
 
LVL 39

Accepted Solution

by:
lcohan earned 500 total points
ID: 39598714
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.
0
 
LVL 5

Expert Comment

by:MohitPandit
ID: 39599829
Hello,

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
0
 
LVL 1

Author Closing Comment

by:HLRosenberger
ID: 39634496
Thanks
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Join & Write a Comment

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now