troubleshooting Question

SQL row will automatically generate a row # but will not revert to it after deletion of that row.

Avatar of 3636
3636 asked on
Microsoft SQL ServerMicrosoft SQL Server 2008
8 Comments6 Solutions461 ViewsLast Modified:
When selecting “Edit Top 200 Rows” and adding another line of info to the table it works fine and automatically added a consecutive # to the “Ithgschool_Ext_ID” column.
But when I delete the newly added row, the next time I insert another new row, the consecutive # is skipped. In this case there are rows 1, 2, and jumps straight to 5.
Now, if I delete row 5, the next time I insert another row, that column will automatically generate the number 6, so it will show 1, 2, and 6.
How can I have the consecutive order show up again?

(see screen shot)
Rich WeisslerProfessional Troublemaker^h^h^h^h^hshooter

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 6 Answers and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 6 Answers and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros