all groups > sql server dts > november 2005 >
You're in the

sql server dts

group:

insert in various table for every row


insert in various table for every row Owen
11/24/2005 12:04:48 PM
sql server dts:
Hello:

I have one table that for each row I have to insert various record in
several table, and I want to in dts. This is example

table1
-field1
-field2
-field3

I would like for each record or row of this table:

insert table2 somevalue, field1, field2
insert table3 field1, field3
insert table4 newguid, field2
and so on

Best regards,
Owen.

Re: insert in various table for every row Owen
11/24/2005 5:28:54 PM
Hello:

Please can you give some example that how can I do that? MS SQL Server 2000

Best regards,
Owen.

[quoted text, click to view]

Re: insert in various table for every row Owen
11/24/2005 6:03:35 PM
Hello:

when you talk about data pump, do you mean trasformation task? and this
workflow can work for each row, because I read you articule recommended and
this said that the Task A must complete successfully, all task?

[quoted text, click to view]

Re: insert in various table for every row Owen
11/24/2005 6:08:04 PM
Hello:

I forget ask this too, in the case that I have to insert new guid, how can I
do that?

Best regards ans sorry for be so "impertinente"
Owen.


[quoted text, click to view]

Re: insert in various table for every row Allan Mitchell
11/24/2005 8:17:08 PM
Personally I would be looking to move the data in > 1 data pump task.
For each table into which you need to pump data you have separate data
pump.

Allan

[quoted text, click to view]
Re: insert in various table for every row Allan Mitchell
11/24/2005 9:37:33 PM
Sure


Define your fisrt data pump between the source and destination. Now
using a workflow constraint do the same fo the second data pump task so
you will chain them together


Source --> Dest -- ON SUCCESS -- Source2 --> Dest2 etc


Make sense or is there something I am missing?

Introduction to Workflow
(http://www.sqldts.com/default.aspx?287)



Allan


[quoted text, click to view]
Re: insert in various table for every row Allan Mitchell
11/24/2005 10:25:03 PM
You are not going to be doing anything Row * Row here.
Yes I mean the Data transformation task.

As far as I see you want to move certin columns from each row to
different tables. You will use for each Data Pump a SELECT statement
that only picks up the correct columns needed.

How are you going to generate a new guid?

In the destination can you not have a default on the columns that
generates one using newID()?


Allan


[quoted text, click to view]
AddThis Social Bookmark Button