简体   繁体   中英

Data Transfer Into New SQL Server Database Schema

Need to find the best way to transfer data from an existing SQL Server 2008 database into a new database schema.

For some tables the fields in the destination table and source table are lined up perfectly but in other cases a large table in the source is split up into smaller tables in the destination so we need to insert fields from the source table and then get the new key and insert it as a foreign key into other tables with fields from the source table.

Not sure the best way to do this, looks like just a SQL script or an SSIS package but I am not sure an SSIS package can do this.

SSIS is an option. You'll have to code the data transfers by hand (to get the order correct, to split up the tables that don't map directly), but it'll definitely work. BIML might be able to give you a big bootstrap.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM