Re: Migrating DTS Packages across environments
From: Allan Mitchell (allan_at_no-spam.sqldts.com)
Date: 07/08/04
- Next message: Allan Mitchell: "Re: All I want to do is backup my database...."
- Previous message: Jon Glazer: "All I want to do is backup my database...."
- In reply to: Hari: "Migrating DTS Packages across environments"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 8 Jul 2004 14:39:07 +0100
Your requirements then are slightly more complicated but not impossible.
You will have to have the package read the owner for the respective
environment from somewhere if you want this to be dynamic and not have to
open up each package. Also remember that DTS is client side so the client
will have to be able to tell which environment it is supposed to be
executing otherwise how does the package know?.
You could provide a front end for the user that fires the package and they
then choose the correct environment.
That said you could modify the migration routine to provide the migrator
with a Env --> Env selector. This could then open the package and set
values for the correct environment (Maybe just a single Global Variable).
You would build the SQL Statements then like this article.
Global Variables and SQL statements in DTS
(http://www.sqldts.com/Default.aspx?205)
Does that make sense?
-- ---------------------------- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "Hari" <Hari@discussions.microsoft.com> wrote in message news:E9145726-AC36-4EB6-98B7-33622CD12DEA@microsoft.com... > Hi , > > Please help me with this. I want to migrate DTS packages from one environment to another. I have the transformdts code from www.sqldts.com which helps in copying dts packages from one server to another. I have modified it and now it changes the connection information (server, userid, password, database) also. But i have a problem. I use the transform data task. In the source query i am typing a query. But the same table has different database owners in different environment. Now i want to change the query also like if the database owner for server A is abc and for server B is xyz and if the query is "select * from abc.EmpDetails". Now i want some means to change the query also to "select * from xyz.EmpDetails". How to do that while migrating. Please help me with this.
- Next message: Allan Mitchell: "Re: All I want to do is backup my database...."
- Previous message: Jon Glazer: "All I want to do is backup my database...."
- In reply to: Hari: "Migrating DTS Packages across environments"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|