简体   繁体   中英

SSIS - Multiple table insert

I am copying data from MS Access to SQL Server using SSIS. Only one time I am gonna copy, it is not repeated task.

There is only one source table(Table_Source).

I want to insert data into two tables (Table1 and Table2).

Table1 contains a primary key which is a identity column.

After inserting into table1, I need to get the identity value of the row and

insert it as foreign key in table2 with some values from Table_Source.

Example:

Table_Source(EmployeeNo,LocationName)

Table1(ID,EmployeeNo)

                  Location(ID,LocationName) reference table

Table2(ID(FK to Table1),LocationID(FK to Location)

How to achieve this thro SSIS?

Thanks in advance. Bhaskar

您将在以下问题中找到所需的信息: SSIS数据转换

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