Question : Copy data from Access table to SQL Server 2005 table when there is an autonumber

I am trying to update a database that uses an Access BE to SQL Server 2005 BE. I have created the SQL Server databases and linked to them successfully. Now I need to test the system thoroughly before I put it into general use.

When I am ready to put it in general use I want to re-initialise the tables with the data from the current production system. I can do that easily for all but 3 tables. These 3 tables have an autonumber field so when I try to copy the data from the Access tables into the SQL Server table I get key violations, presumably because SQL Server wants to allocate its own autonumber(Identity). Is there any way of copying the data accross or will I need to delete the table and re-create it with the upgrade wizard all over again when I finally go to production?

Answer : Copy data from Access table to SQL Server 2005 table when there is an autonumber

if you want to create msql upsized tables from access and maintain the primary key values i think you willhave to drop the sql tables and re run the "upsize" import table from access to sql at the point of the upgrade...

might be worth practicing / testing this a few times before your go live date
Random Solutions  
 
programming4us programming4us