dbTalk Databases Forums  

Gobal variable in dynamic properties

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


Discuss Gobal variable in dynamic properties in the microsoft.public.sqlserver.dts forum.



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

Default Gobal variable in dynamic properties - 12-20-2005 , 04:46 AM






Hi there,

In my DTS package, I want to define my connection DataSource using dynamic
properties. I'm using a query to initialize the source.
Can I use a global variable in this query and how to use it ?

Thanks for all
VinCe

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

Default Re: Gobal variable in dynamic properties - 12-20-2005 , 05:55 AM







You can use a global variable (parameter) in a query within the Exec SQL
Task, the Data Pump task and the Data Driven Query task. You cannot use
parameters in a query fro a Dynamic Properties Task assignment.

You could use an Execute SQL Task to run the parameterised query and assign
the result to a global variable, then use the Dynamic Properties to assign
the global variable to the final destination.


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

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

Quote:
Hi there,

In my DTS package, I want to define my connection DataSource using dynamic
properties. I'm using a query to initialize the source.
Can I use a global variable in this query and how to use it ?

Thanks for all
VinCe



Reply With Quote
  #3  
Old   
VinCe
 
Posts: n/a

Default Re: Gobal variable in dynamic properties - 12-20-2005 , 06:44 AM



thanks for your help !
I will use your solution, with the result of the query in a global variable.

VinCe


"Darren Green" wrote:

Quote:
You can use a global variable (parameter) in a query within the Exec SQL
Task, the Data Pump task and the Data Driven Query task. You cannot use
parameters in a query fro a Dynamic Properties Task assignment.

You could use an Execute SQL Task to run the parameterised query and assign
the result to a global variable, then use the Dynamic Properties to assign
the global variable to the final destination.


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

"VinCe" <VinCe (AT) discussions (DOT) microsoft.com> wrote in message
news:F46F66F8-FAA0-4379-8A34-8DCB6C27B49F (AT) microsoft (DOT) com...
Hi there,

In my DTS package, I want to define my connection DataSource using dynamic
properties. I'm using a query to initialize the source.
Can I use a global variable in this query and how to use it ?

Thanks for all
VinCe




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.