![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Can anyone tell me how to access DTS properties (such as global variable values) via TSQL? Examples would be nice. Thanks |
#3
| |||
| |||
|
|
Can anyone tell me how to access DTS properties (such as global variable values) via TSQL? Examples would be nice. Thanks |
#4
| |||
| |||
|
|
Hello BLS, DTS doesn't run within TSQL. Are you trying to execute some TSQL from within a DTS package and have the TSQL use some global variable. If so you can set the SQL in your execute sql task from an activex script component. In here you can build the TSQL with the value of the global variable. |
#5
| |||
| |||
|
|
Simon Sabin wrote: Hello BLS, DTS doesn't run within TSQL. Are you trying to execute some TSQL from within a DTS package and have the TSQL use some global variable. If so you can set the SQL in your execute sql task from an activex script component. In here you can build the TSQL with the value of the global variable. What I would like to do is access a DTS global variable inside a TSQL task. I'd like to set its value, etc, only not via activex but using TSQL. |
#6
| |||
| |||
|
|
Using the ExecuteSQL task you can assign values from a SQL Statement to Global Variables. Is this what you want? |
#7
| |||
| |||
|
|
Allan Mitchell wrote: Using the ExecuteSQL task you can assign values from a SQL Statement to Global Variables. Is this what you want? Yes. Do you know the syntax for how to assign values to DTS Global Variables in that way? |
#8
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |