dbTalk Databases Forums  

SSIS Insert into multiple tables

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss SSIS Insert into multiple tables in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dw
 
Posts: n/a

Default SSIS Insert into multiple tables - 10-31-2006 , 08:59 PM






hello -

i am trying to figure out how i can create an SSIS package to insert into
multiple tables. After the first insert, I want to take the ID created (an
Identity column) and then use that to insert into other associated (foreign
key) tables.

For example, I have a table Users. The primary key is an Identity column.
Once the SSIS insert is complete, the bulk load of new users has an identity
ID value for each row. What I want to do, during the same SSIS package, is
to take each row as it is inserted and add rows to other tables. Like,
UserDepartment - it has a foreign key for the user id and a foreign key to
the department being added.

I looked at multi-cast, but I don't know/think that this will work for me.

does anyone know of a good example or article like this?

thanks
- will

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.