dbTalk Databases Forums  

DTS transformation dynamic automatic matching columns

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


Discuss DTS transformation dynamic automatic matching columns in the microsoft.public.sqlserver.dts forum.



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

Default DTS transformation dynamic automatic matching columns - 09-14-2005 , 05:24 AM







Hi,
I am copying about 100 tables from Base A to Base B and more exactly pat of
tables from Base A to Base B
example
copy 50 first line from A.dbo.table1 to B.dbo.table1

I use a loop that launches utility dtsrun with global variables
that take the source name and the destination name of the table

The problem is that it doesn't match automatically the columns and I have
an error!
How can do so that the column be matched automaticvaly as the source table
and the destination table are always the same?

Thanks a lot for your help. It's urgent!

mehdi


have created a package with a transform Data task and I would
--
mehdi

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS transformation dynamic automatic matching columns - 09-14-2005 , 01:30 PM






The problem you have is that just because you change the source and the
destination onjects DTS will not then do the automap for you if you are
doing this programmatically at runtime.

You will need to handle that yourself.

I have a package that does something crudely similar. You may be able
to match it to your situation. Ping me offline for the package.

Allan



"mehdi" <mehdi.achour (AT) free (DOT) fr(donotspam)> wrote


Quote:
Hi,
I am copying about 100 tables from Base A to Base B and more exactly pat
of
tables from Base A to Base B
example
copy 50 first line from A.dbo.table1 to B.dbo.table1

I use a loop that launches utility dtsrun with global variables
that take the source name and the destination name of the table

The problem is that it doesn't match automatically the columns and I
have
an error!
How can do so that the column be matched automaticvaly as the source
table
and the destination table are always the same?

Thanks a lot for your help. It's urgent!

mehdi


have created a package with a transform Data task and I would
--
mehdi


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.