dbTalk Databases Forums  

Passing a Parameter from another database connection to Data Pump SQL Query

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


Discuss Passing a Parameter from another database connection to Data Pump SQL Query in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
kaniajr@hotmail.com
 
Posts: n/a

Default Passing a Parameter from another database connection to Data Pump SQL Query - 02-07-2005 , 02:53 PM






Could someone advise me to the best practice to achive the following
objective? Thank you

Objective: Use a field value of another database and table in the as a
condition in the Data Pump SQL Query


Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Passing a Parameter from another database connection to Data Pump SQL Query - 02-07-2005 , 03:00 PM






Add an ExecuteSQL task that issues the query against the remote server
Read the value into a variable (Parameters button)

So say

SELECT ColA FROM TABLE WHERE ColB = 'Value'


You can now use in a DataPump task by using the ? placeholder and
mapping the variable to the ?


Global Variables and SQL statements in DTS
(http://www.sqldts.com/default.aspx?205)



"kaniajr (AT) hotmail (DOT) com" <kaniajr (AT) hotmail (DOT) com> wrote

Quote:
Could someone advise me to the best practice to achive the following
objective? Thank you

Objective: Use a field value of another database and table in the as a
condition in the Data Pump SQL Query


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.