开发者

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


You'll find the information you need in this question: SSIS Data Transformation

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜