![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I'm running DTSs from a Windows Service developed with VS2003 (.Net 1.1.). I need to update some Global Variables values (in the same way I do with parameter /A of DTSRun.exe). Those Variables are String Variables. Those variables are used from a DynamicProperty Task to update the Output file of a Text File Source Task. So, I loaded the package in a Package2 Object, and try to set the value for my Global Variables before call Execute. I got this error: "The object in GlobalVariable 'MyVariable' could not be persisted. It should be dynamically added to and removed from the GlobalVariables collection during Package execution. No such interface supported" Any idea to solve this problem? Thanks a lot LucasC |
#3
| |||
| |||
|
|
A good place to start is with this article DTS Global Variables and Visual Basic .Net (http://www.sqldts.com/default.aspx?265) "LucasC" <msdn (AT) rmya (DOT) com.ar> wrote in message news:O5o6bdLqFHA.2956 (AT) TK2MSFTNGP12 (DOT) phx.gbl... Hi, I'm running DTSs from a Windows Service developed with VS2003 (.Net 1.1.). I need to update some Global Variables values (in the same way I do with parameter /A of DTSRun.exe). Those Variables are String Variables. Those variables are used from a DynamicProperty Task to update the Output file of a Text File Source Task. So, I loaded the package in a Package2 Object, and try to set the value for my Global Variables before call Execute. I got this error: "The object in GlobalVariable 'MyVariable' could not be persisted. It should be dynamically added to and removed from the GlobalVariables collection during Package execution. No such interface supported" Any idea to solve this problem? Thanks a lot LucasC |
#4
| |||
| |||
|
|
A good place to start is with this article DTS Global Variables and Visual Basic .Net (http://www.sqldts.com/default.aspx?265) "LucasC" <msdn (AT) rmya (DOT) com.ar> wrote in message news:O5o6bdLqFHA.2956 (AT) TK2MSFTNGP12 (DOT) phx.gbl... Hi, I'm running DTSs from a Windows Service developed with VS2003 (.Net 1.1.). I need to update some Global Variables values (in the same way I do with parameter /A of DTSRun.exe). Those Variables are String Variables. Those variables are used from a DynamicProperty Task to update the Output file of a Text File Source Task. So, I loaded the package in a Package2 Object, and try to set the value for my Global Variables before call Execute. I got this error: "The object in GlobalVariable 'MyVariable' could not be persisted. It should be dynamically added to and removed from the GlobalVariables collection during Package execution. No such interface supported" Any idea to solve this problem? Thanks a lot LucasC |
![]() |
| Thread Tools | |
| Display Modes | |
| |