dbTalk Databases Forums  

how to change customtask destinationObjectname with vb

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


Discuss how to change customtask destinationObjectname with vb in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
eddy van beek
 
Posts: n/a

Default how to change customtask destinationObjectname with vb - 03-22-2005 , 04:03 AM






I have serveral dts packages saved on the server.
they contain a very large amount of tables(hundreds)

i have made a ini file to determine the source database and the
destination(db and server) that works fine.

however dts package stored from a wizzard contain full DestinationObjectName
= [wbrap].[dbo].[carte]

would llike to change that via VB to [carte]

thanks in advanced

--
@ddy

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

Default Re: how to change customtask destinationObjectname with vb - 03-22-2005 , 01:31 PM






Unfortunately you will need to using code.

You will need to loop through the packages

Enumerating DTS Packages using VB.Net
(http://www.sqldts.com/default.aspx?250)

Open
Seek each DestinationObjectName property
Set to the right value

Changing the DataPump Source and Destination Tables
(http://www.sqldts.com/default.aspx?213)

Save back




"eddy van beek" <eddyvanbeek (AT) discussions (DOT) microsoft.com> wrote


Quote:
I have serveral dts packages saved on the server.
they contain a very large amount of tables(hundreds)

i have made a ini file to determine the source database and the
destination(db and server) that works fine.

however dts package stored from a wizzard contain full DestinationObjectName
= [wbrap].[dbo].[carte]

would llike to change that via VB to [carte]

thanks in advanced

--
@ddy


Reply With Quote
  #3  
Old   
eddy van beek
 
Posts: n/a

Default Re: how to change customtask destinationObjectname with vb - 03-23-2005 , 08:07 AM



thanks Allan need to do some coding but well get thre

"Allan Mitchell" wrote:

Quote:
Unfortunately you will need to using code.

You will need to loop through the packages

Enumerating DTS Packages using VB.Net
(http://www.sqldts.com/default.aspx?250)

Open
Seek each DestinationObjectName property
Set to the right value

Changing the DataPump Source and Destination Tables
(http://www.sqldts.com/default.aspx?213)

Save back




"eddy van beek" <eddyvanbeek (AT) discussions (DOT) microsoft.com> wrote in message
news:eddyvanbeek (AT) discussions (DOT) microsoft.com:

I have serveral dts packages saved on the server.
they contain a very large amount of tables(hundreds)

i have made a ini file to determine the source database and the
destination(db and server) that works fine.

however dts package stored from a wizzard contain full DestinationObjectName
= [wbrap].[dbo].[carte]

would llike to change that via VB to [carte]

thanks in advanced

--
@ddy



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.