all groups > sql server dts > may 2006 >
You're in the

sql server dts

group:

Transform data task and dynamic source and destination tables



Transform data task and dynamic source and destination tables Cismail via SQLMonster.com
5/10/2006 7:08:16 PM
sql server dts: Hi,

I want to copy the data in tables from server A to files on the AS400. The
table structure on the server is the same as the file on the AS400(same
column names). In other words, the source and destination columns
are always the same.
I created a DTS that has the following tasks: dynamic properties task, SQL
server connection, transform data task and a other connection(ODBC data
source).
I'm using global variables to dynamically set the source and destination
tables names on the transform data task. The problem is the columns are not
being automatically mapped and I'm getting an error message.

Need help urgently!!!
Thank you very much.

--
Re: Transform data task and dynamic source and destination tables Allan Mitchell
5/15/2006 12:00:00 AM
Hello Cismail via SQLMonster.com,


DTS as you have discovered will not auto remap. Would have been nice but
it can't be done. You have asked in a later post for me to send you something.
I have replied in that post


Allan


[quoted text, click to view]

Re: Transform data task and dynamic source and destination tables Sarah
5/31/2006 12:15:36 PM
You can do this if you use a CopyColumn transformation. Instead of
mapping each column from source to destination, SQL will simply copy
all columns from source to destination.

Now if you can tell me how to dynamically set the destination table in
a transformation, from a global variable, I'd be happy. Can't seem to
find anything online about how to do this!

Cheers...

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