troubleshooting Question

Identity Insert Question

Avatar of VitaminD
VitaminDFlag for United States of America asked on
Microsoft SQL Server
4 Comments1 Solution378 ViewsLast Modified:
I have a table with an identity insert column. The table currently has 220,000 records

I need to backfill this table with say 1 million records starting the Id at one

Then I need to change the current 220,00 records which go from Id 1 - Id 220,000 to
reflect the backfill

So I want no gaps at all with my Id's

So my table should start at one and go to 1,220,000 in order

How would I go about accomplishing  this task?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
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 1 Answer and 4 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