Solved

How to update a new sql 2008 r2  database from an older sql 2008 r2 indexed database

Posted on 2013-06-18
2
241 Views
Last Modified: 2013-06-19
I have a program that has used the same sql 2008 r2 database for some years. It is a fairly simple layout than uses one of its columns as (is indentity) (autonumber by 10). Each time a new record is added it produce a new number. This is then used by other tables as a relational key.

I have made a major update to the program and require the old data to be imported into the new database table. The problem is that if I insert the old data into the new one the index increment will be consecutive. This problem is that in the past occasionally a record will be deleted so the numbers won't be consecutive.

How do I move the old table to the new database and preserve in indexed number in the old. The new table will still need to be indexed.

Is there a way to copy the old table to the new and preserve the indexed number?
0
Comment
Question by:milkwood
2 Comments
 
LVL 9

Accepted Solution

by:
MattSQL earned 500 total points
ID: 39258641
0
 

Author Closing Comment

by:milkwood
ID: 39258747
Just the job
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to shrink a transaction log file down to a reasonable size.

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question