dbTalk Databases Forums  

How to: Update catalog infor when changing destination catalog con

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


Discuss How to: Update catalog infor when changing destination catalog con in the microsoft.public.sqlserver.dts forum.



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

Default How to: Update catalog infor when changing destination catalog con - 03-08-2006 , 10:59 AM






Hi,

I have a big issue.
I have created a DTS package whit some global variable as:
DestinationCatalog
DestinationDataSource

I will call this DTS using c#.net and I will give the global variable as
needed.

the problem I have is I have 300 import tables to import to the destination
(MS SQL). What I've done it's I have created a dynamic properties to set the
destionnationCatalog and destionantionDataSource to my Destination connection.

The thing is on the tranformation itself, even if i change the destination
catalog connection name, the transformation is failling because it is trying
to import to
[myOldcatalogname].[dbo][mytable] insteed of
[myNewcatalogname].[dbo][mytable] . (In here: Transform Data Task ->
Destionation -> Table name).

Is there any way that if I change the destination catalog name, it will
reflect in my data transformation as well so it will try to export to the
good catalog name (not my old one that I have initially created the dts)

thanks al og.

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

Default Re: How to: Update catalog infor when changing destination catalog con - 03-09-2006 , 04:09 PM






Hello abuck,

I think you may want to look at this article

http://www.sqldts.com/default.aspx?213

By default the DestinationObjectName is made up of the DatabaseName.Owner.TableName


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Quote:
Hi,

I have a big issue.
I have created a DTS package whit some global variable as:
DestinationCatalog
DestinationDataSource
I will call this DTS using c#.net and I will give the global variable
as needed.

the problem I have is I have 300 import tables to import to the
destination (MS SQL). What I've done it's I have created a dynamic
properties to set the destionnationCatalog and destionantionDataSource
to my Destination connection.

The thing is on the tranformation itself, even if i change the
destination
catalog connection name, the transformation is failling because it is
trying
to import to
[myOldcatalogname].[dbo][mytable] insteed of
[myNewcatalogname].[dbo][mytable] . (In here: Transform Data Task -
Destionation -> Table name).
Is there any way that if I change the destination catalog name, it
will reflect in my data transformation as well so it will try to
export to the good catalog name (not my old one that I have initially
created the dts)

thanks al og.




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.