dbTalk Databases Forums  

passing Server name as parameter to Querry, can't use procedure.

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


Discuss passing Server name as parameter to Querry, can't use procedure. in the microsoft.public.sqlserver.dts forum.



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

Default passing Server name as parameter to Querry, can't use procedure. - 08-22-2005 , 05:03 AM






Hi,
I need to pull data from an application server. I am using Transform data
task.
I want the Source server to be passed as a parameter. I know it can be done
using Dynamic SQL and use of procedure.
My source of Transform data task is a sql querry, which uses OLTP database
as source. I can't replace the querry with procedure as I am not supposed to
cerate any procedure in application server (OLTP).

Using just the querry how can I pass Server name as parameter??
thanks in advance.
Don't want to use SQl task also.

kshitij.

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

Default Re: passing Server name as parameter to Querry, can't use procedure. - 08-22-2005 , 12:40 PM






The ONLY way you are going to be able to do this then by passing in a
parameter is like this


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




"k_s" <ks (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,
I need to pull data from an application server. I am using Transform data
task.
I want the Source server to be passed as a parameter. I know it can be
done
using Dynamic SQL and use of procedure.
My source of Transform data task is a sql querry, which uses OLTP database
as source. I can't replace the querry with procedure as I am not supposed
to
cerate any procedure in application server (OLTP).

Using just the querry how can I pass Server name as parameter??
thanks in advance.
Don't want to use SQl task also.

kshitij.



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.