dbTalk Databases Forums  

Same Pkg for Dec, QA & Prod destinations

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


Discuss Same Pkg for Dec, QA & Prod destinations in the microsoft.public.sqlserver.dts forum.



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

Default Same Pkg for Dec, QA & Prod destinations - 08-07-2003 , 10:59 AM






Is it possible to make DTS Packages that can easily target different
destination SQL Server servers and databases?

I'd like to have the package modified as little as possible as I proceed
through the development lifecycle. Starting with my development
environment, then to a QA database server with a different DB name (same
schema), then finally to the production deployment.

Are global variables the way to do this? If so, then I'm afraid that I
don't understand how to use them on the connection object and in the
transforms.

- Rick



Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Same Pkg for Dec, QA & Prod destinations - 08-07-2003 , 02:13 PM






In article <jumdnUUWJIN-66-iU-KYgw (AT) comcast (DOT) com>, RickT
<thumper (AT) kqrsrocksNOSPAM (DOT) com> writes
Quote:
Is it possible to make DTS Packages that can easily target different
destination SQL Server servers and databases?

I'd like to have the package modified as little as possible as I proceed
through the development lifecycle. Starting with my development
environment, then to a QA database server with a different DB name (same
schema), then finally to the production deployment.

Are global variables the way to do this? If so, then I'm afraid that I
don't understand how to use them on the connection object and in the
transforms.

- Rick

Have a look at the Dynamic Properties Task. This can read global
variables and assign the value to virtually any task, step or connection
property in that package.

Look up "Dynamic Properties task" in SQL Server Books Online for some
more information.

Using parameters in this way for any property that may change is good
practice in my opinion.

For connections you can also abstract the server name by using an alias
created via the Client Network Utility. This is for the server name only
unfortunately.

You could also change your connections to "Microsoft Data Link" which
uses UDL files. These are really just text files with a connection
string in. If you have a common file path and use functional names for
the UDLs you should never need to change the UDL file property in you
connection during migration, as each server (environment) has it's own
copy of the file.


--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com




Reply With Quote
  #3  
Old   
Darren Green
 
Posts: n/a

Default Re: Same Pkg for Dec, QA & Prod destinations - 08-14-2003 , 04:23 AM



Remove the DB component, it is not required, and since it overrides the
connection catalog, it is just a pain in most cases. One it ios removed just
set the connection to the correct DB and it should be happy.


--
Darren Green
http://www.sqldts.com

"RickT" <thumper (AT) kqrsrocksNOSPAM (DOT) com> wrote

Quote:
Thanks, JFB & Darren. Between the Data Link connections and the Dynamic
Properties task, I've just about got this licked.

The one issue I have still outstanding is when uding the Dynamic
Properties
task to set properties on the dts data pump task, the
DestinationObjectName
is fully qualified (db.owner.table).

So, do I have to have a seperate .INI file for each destination table?
All
the destination table names will be the same, just the DB name would
change.
I'm afraid that maintaining dozens of .ini files would be a lot of work
and
possibly error prone.

- Rick
"Darren Green" <darren.green (AT) reply-to-newsgroup-only (DOT) uk.com> wrote in
message news:Kyu2FhK$SqMicrosoftEwHm (AT) sqldts (DOT) com...
In article <jumdnUUWJIN-66-iU-KYgw (AT) comcast (DOT) com>, RickT
thumper (AT) kqrsrocksNOSPAM (DOT) com> writes
Is it possible to make DTS Packages that can easily target different
destination SQL Server servers and databases?

I'd like to have the package modified as little as possible as I
proceed
through the development lifecycle. Starting with my development
environment, then to a QA database server with a different DB name
(same
schema), then finally to the production deployment.

Are global variables the way to do this? If so, then I'm afraid that I
don't understand how to use them on the connection object and in the
transforms.

- Rick


Have a look at the Dynamic Properties Task. This can read global
variables and assign the value to virtually any task, step or connection
property in that package.

Look up "Dynamic Properties task" in SQL Server Books Online for some
more information.

Using parameters in this way for any property that may change is good
practice in my opinion.

For connections you can also abstract the server name by using an alias
created via the Client Network Utility. This is for the server name only
unfortunately.

You could also change your connections to "Microsoft Data Link" which
uses UDL files. These are really just text files with a connection
string in. If you have a common file path and use functional names for
the UDLs you should never need to change the UDL file property in you
connection during migration, as each server (environment) has it's own
copy of the file.


--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com







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.