dbTalk Databases Forums  

How to retrieve the Inital Catalog Properties under Ole DB Properties

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


Discuss How to retrieve the Inital Catalog Properties under Ole DB Properties in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
lai3288@gmail.com
 
Posts: n/a

Default How to retrieve the Inital Catalog Properties under Ole DB Properties - 01-03-2006 , 02:43 AM






I have defined a "Microsoft Data Link" Connection by using specified
UDL in UDL Design Sheet, I would like to retrieve the Data Source and
Inital Catalog at Data Link Properties such that I would be able to
execute my Package in different server and db.

my inital catalog and data source is in "Microsoft Data Link" under
"Ole DB Properties", How can I retrieve shcuh propertiesin VB Scipt??

Jackie


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

Default Re: How to retrieve the Inital Catalog Properties under Ole DB Properties - 01-03-2006 , 03:57 PM






Hello lai3288 (AT) gmail (DOT) com,

If I have a UDL called "Microsoft Data Link" in my package I can retrieve
its DataSource property by doing the following.

DTSGlobalvariables.Parent.Connections("Microsoft Data Link").DataSource

Does this help?

Allan



Quote:
I have defined a "Microsoft Data Link" Connection by using specified
UDL in UDL Design Sheet, I would like to retrieve the Data Source and
Inital Catalog at Data Link Properties such that I would be able to
execute my Package in different server and db.

my inital catalog and data source is in "Microsoft Data Link" under
"Ole DB Properties", How can I retrieve shcuh propertiesin VB Scipt??

Jackie




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.