Advertisement

06.08.2005 at 12:21PM PDT, ID: 21451450
[x]
Attachment Details

removing gaps in an auto incremented field

Asked by aashishshrestha in MS SQL Server

Tags: field

If I have a autoincrement field in a table suppose its the called id  

I delete some records say if i had
1 lll
2 kkk
3 ppp
4 ttt
5 uuu

and i delete 4 ttt and 5 uuu now if i insert some new records it will start from 6 what can i do to remove the gap or in other words how do i make it start the id from 4 instead of 6.Start Free Trial
[+][-]06.08.2005 at 12:24PM PDT, ID: 14173771

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.

 
[+][-]06.08.2005 at 12:30PM PDT, ID: 14173834

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

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

 
[+][-]06.08.2005 at 12:31PM PDT, ID: 14173839

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.

 
[+][-]06.08.2005 at 12:47PM PDT, ID: 14173995

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

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

 
[+][-]06.08.2005 at 12:50PM PDT, ID: 14174026

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.

 
[+][-]06.08.2005 at 01:02PM PDT, ID: 14174134

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

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

 
[+][-]06.08.2005 at 01:03PM PDT, ID: 14174140

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.

 
[+][-]06.08.2005 at 01:26PM PDT, ID: 14174350

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: field
Sign Up Now!
Solution Provided By: ShogunWade
Participating Experts: 3
Solution Grade: A
 
 
[+][-]06.08.2005 at 04:36PM PDT, ID: 14175594

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