Advertisement

07.21.2005 at 05:51AM PDT, ID: 21499468
[x]
Attachment Details

How to reset identity seed

Asked by metalaureate in MS SQL Server

Tags: identity, reset, seed, mssql

Hi Experts

I have tables whose IDENTITY starts at 100; I use 1 to 99 for Test ID's. So, I frequently have to clean out these tables and start again, during development. What is the easiest way to re-set the IDENTITY SEED? When I try to re-set with the ALTER TABLE statement, MSSQL 2000 still counts from the the last generated value.Start Free Trial
[+][-]07.21.2005 at 05:55AM PDT, ID: 14492981

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Tags: identity, reset, seed, mssql
Sign Up Now!
Solution Provided By: angelIII
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.21.2005 at 05:57AM PDT, ID: 14492991

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32