dbTalk Databases Forums  

DTS Package Reusability

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


Discuss DTS Package Reusability in the microsoft.public.sqlserver.dts forum.



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

Default DTS Package Reusability - 04-23-2004 , 03:37 PM






I am new to DTS. I have created a package containing several steps
using Oracle as the source db. The database contains several
instances of the same schema with different owners. A sample of a
source query follows:

SELECT HA.DEFENDANT.UID, HA.DEFENDANT.SEQUENCE,
HA.ORGANIZATION.NAME,
'A' AS EXPR1
FROM HA.DEFENDANT,
HA.ORGANIZATION
WHERE HA.DEFENDANT.UID_LOF
= HA.ORGANIZATION.UID

The different owners are HA, HB ...

How can I set up this package to be reused for each instance. Thanks.

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

Default Re: DTS Package Reusability - 04-23-2004 , 05:31 PM






In message <d20e2d6f.0404231237.6afb7767 (AT) posting (DOT) google.com>, Mike S
<mike.schiewer (AT) ssfhs (DOT) org> writes
Quote:
I am new to DTS. I have created a package containing several steps
using Oracle as the source db. The database contains several
instances of the same schema with different owners. A sample of a
source query follows:

SELECT HA.DEFENDANT.UID, HA.DEFENDANT.SEQUENCE,
HA.ORGANIZATION.NAME,
'A' AS EXPR1
FROM HA.DEFENDANT,
HA.ORGANIZATION
WHERE HA.DEFENDANT.UID_LOF
= HA.ORGANIZATION.UID

The different owners are HA, HB ...

How can I set up this package to be reused for each instance. Thanks.
Why not remove the owners from the SQL, and just change the login used
by the connection to the correct owner.

If you really want to play with the SQL, then you will probably need to
use a Script Task, something like this-
Global Variables and SQL statements in DTS
(http://www.sqldts.com/default.aspx?205)
--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



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.