all groups > sql server dts > june 2007 >
You're in the

sql server dts

group:

Dynamic change of Connection parameters in DTS at runtime


Dynamic change of Connection parameters in DTS at runtime Jean
6/21/2007 5:39:38 AM
sql server dts:
Hello,

I am currently deciding on what to do in a classic scenario:

I am writing DTS packages that will be executing on the Development
SQL Server and performing various tasks.

Once I am satisfied with the DTS packages, I will migrate them to the
Testing environment and then finally to the Production environment.

I would like the packages to dynamically check on which SQL Server
they are running and consequently modify the parameters for the
Connection objects in my packages. This way, I can develop the
packages and run them independent of which server they are being
executed on.

I have read some articles on how to do this by linking to a text file,
using a UDL file, and more. Is there a way of doing this perhaps using
an ActiveX script? Or are there other ways of doing this?

Thanks in advance
RE: Dynamic change of Connection parameters in DTS at runtime EagleBeek
6/27/2007 1:56:03 PM
Your post says "parameters". If by that you mean the properties of the
connection managers (e.g. ServerName), then you should investigate the SSIS
concept of Configurations. They will probably do exactly what you want. We
use them here for exactly the purpose you describe and they work fine.
--
EagleBeek


[quoted text, click to view]
RE: Dynamic change of Connection parameters in DTS at runtime EagleBeek
6/27/2007 2:00:04 PM
oops. I thought your post was for SSIS, not DTS. My response only applies
to SSIS in SQL server 2005.

SAT

--
EagleBeek


[quoted text, click to view]
Re: Dynamic change of Connection parameters in DTS at runtime Lee Gillie
6/28/2007 1:40:59 PM
[quoted text, click to view]

It is tough as is.

We developed a systematic "configuration" facility for DTS, which
plugged localized properties for connections and folders, and what have
you. There is nothing in the box that does this.

Re: Dynamic change of Connection parameters in DTS at runtime Allan Mitchell
6/29/2007 6:49:48 AM
Hello Lee,


As EagleBeek wrote. Configurations and Property Expressions are the way
forward when you want to set properties of a package. They have slightly
different scope in that Configurations are applied once JUST before the package
fires and Property Expressions fire/evaluate n times.



--

Allan Mitchell
http://wiki.sqlis.com | http://www.sqlis.com | http://www.sqldts.com |
http://www.konesans.com

[quoted text, click to view]

Re: Dynamic change of Connection parameters in DTS at runtime Lee Gillie
7/16/2007 1:15:22 PM
for SSIS of course. I would say it was a problem in DTS which SSIS
solved. Although I found it created some new unsolved-out-of-the-box
problems, but some new utilities have helped us keep systems of packages
in synch to share a common configuration. - Lee

[quoted text, click to view]
AddThis Social Bookmark Button