8,200 pts.
 What is seed and reseed in SQL Server?
What is seeding and reseeding in SQL Server? How to use it? Where is it used? What is the purpose?

Software/Hardware used:
ASKED: July 25, 2008  8:01 AM
UPDATED: July 26, 2008  5:04 AM

Answer Wiki:
Hello, The term seed refers to the internal value SQL Server uses to generate the next value in the sequence. By default, an identity column’s first value is 1 and each new value increments by one (1, 2, 3, 4, and so on). You can control the column’s first and subsequent values, by specifying those values when you create the column. For instance, you might want to begin with a purchase order number of 1001 rather than 1. Once the table’s in production you can reset, or reseed the column. In other words, you can change the column’s seed value at any time. For instance, you might reseed a column after deleting records or moving data to an archive table. The good news is that seeding and reseeding an identity column is easy and relatively safe, if you do it correctly. It’s common to seed a new table or to reseed a production, but empty table. However, as a general rule, it’s not a great idea to reseed an identity column in a table that contains data without some serious checks and balances. For examples of Seeding and Reseeding being used, see the following website... http://blogs.techrepublic.com.com/datacenter/?p=406
Last Wiki Answer Submitted:  July 25, 2008  6:56 pm  by  Denny Cherry   64,550 pts.
All Answer Wiki Contributors:  Denny Cherry   64,550 pts. , Tpinky   4,165 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Check out my SQL Server blog “SQL Server with Mr Denny” for more SQL Server information.

 64,550 pts.

 

Thanks Tpinky for the reply, i was wondering if the seed value can be assigned a value zero.

 8,200 pts.

 

Thnx MrDenny, that link was really helpful.

 8,200 pts.