Solved

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

Posted on 2013-06-18
2
248 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

Accepted Solution

by:
Matt Bowler earned 500 total points
ID: 39258641
0
 

Author Closing Comment

by:milkwood
ID: 39258747
Just the job
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

710 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