dbTalk Databases Forums  

DTS Connection Information

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


Discuss DTS Connection Information in the microsoft.public.sqlserver.dts forum.



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

Default DTS Connection Information - 03-22-2005 , 12:10 PM






I am trying to modify a DTS package connection to use
a .udl file. When promoting the package I have to ensure
that there is a .udl file on every environment using the
same name in the same location. That is not a problem,
however, I would like to know if there is a way to
dynamically set this path to use a UNC path so that the
package could be executed from any server instead of
having to be locally executed.

Reply With Quote
  #2  
Old   
Simon Worth
 
Posts: n/a

Default Re: DTS Connection Information - 03-22-2005 , 12:46 PM






Using a Dynamic Properties Task, you can dynamically set the "UDLPath"
Property value to a UNC path that you supply to the package (via global
variable, ini file entry, query, etc).
If this package is on many servers, then I would use a global variable
sent to the package when calling for execution, so it can set the
UDLPath for the connection when it starts.

Example
DTSRun /S "SQLServerName" /N "DTSPackageName" /A
"gv_UDLPath":"8"="\\ServerName\FolderName\UDLFile. udl" /W "0" /E

This example sets the global variable "gv_UDLPath" to
\\ServerName\FolderName\UDLFile.udl. Then when the package is run, the
dynamic properties task sets the UDLPath of the Data Link to the value
of the global variable - which is "\\ServerName\FolderName\UDLFile.udl"

Does that help?

Simon Worth

cazar wrote:
Quote:
I am trying to modify a DTS package connection to use
a .udl file. When promoting the package I have to ensure
that there is a .udl file on every environment using the
same name in the same location. That is not a problem,
however, I would like to know if there is a way to
dynamically set this path to use a UNC path so that the
package could be executed from any server instead of
having to be locally executed.

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.