![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
The following link to MSDN documents the parameters required to use the Execute method of the ExecuteSQLTask object: http://msdn.microsoft.com/library/de...-us/dtsprog/dt spmethai_4p0k.asp The doc speaks of a reference to Package2 and Package2 Events as well as PackageLog. Please will someone illustrate how to call this method with it's required parameters. I realize it is not standard to call a DTS Task object dynamically, but I have no choice as I need to call the process within a recursive function in an ActiveX Script object. I cannot find any examples on MSDN nor any other source I have since searched. |
#3
| |||
| |||
|
|
oTask.Execute oPkg, Nothing, Nothing, CLng(0) |
#4
| |||
| |||
|
|
Hi Darren, This is the only line I needed to see. Thanks. oTask.Execute oPkg, Nothing, Nothing, CLng(0) And yes, I agree it is best to reference an existing Task. Which is exactly what I am trying to do. I just needed to know how to execute that task without a workflow. I will give the above syntax a try. Jamie |
![]() |
| Thread Tools | |
| Display Modes | |
| |