![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have an activeX task that performs a loop and at the end of every loop i want it to execute the exec sql task. I have tried: Set objSQL = DTSGlobalVariables.Parent.Tasks("DTSTask_DTSExecut eSQLTask_1").CustomTask ..... objSQL.Execute But i get an error "wrong number of arguments or invalide property" How can this be done? The reason im doing it this way is that the query the exec sql uses is dynamic to the current loop in the activeX control thanks for any and all help! Ben |
#3
| |||
| |||
|
|
I have an activeX task that performs a loop and at the end of every loop i want it to execute the exec sql task. I have tried: Set objSQL = DTSGlobalVariables.Parent.Tasks("DTSTask_DTSExecut eSQLTask_1").CustomTask ..... objSQL.Execute But i get an error "wrong number of arguments or invalide property" How can this be done? The reason im doing it this way is that the query the exec sql uses is dynamic to the current loop in the activeX control thanks for any and all help! Ben |
#4
| |||
| |||
|
|
You can either wrap the statement into your Active Script task or you could possibly adapt these How to loop through a global variable Rowset (http://www.sqldts.com/default.aspx?298) Looping, Importing and Archiving (http://www.sqldts.com/default.aspx?246) -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. www.SQLIS.com - You thought DTS was good. here we show you the new stuff. www.konesans.com - Consultancy from the people who know "Ben" <ben_1_ AT hotmail DOT com> wrote in message news D215127-9562-486D-A8FD-99EF755374B6 (AT) microsoft (DOT) com...I have an activeX task that performs a loop and at the end of every loop i want it to execute the exec sql task. I have tried: Set objSQL = DTSGlobalVariables.Parent.Tasks("DTSTask_DTSExecut eSQLTask_1").CustomTask ..... objSQL.Execute But i get an error "wrong number of arguments or invalide property" How can this be done? The reason im doing it this way is that the query the exec sql uses is dynamic to the current loop in the activeX control thanks for any and all help! Ben |
#5
| |||
| |||
|
|
thanks for both your answers. But i think you might have missed my question. When i attempt to execute the exec sql task, it get the aboved mentioned error. what are the parameters its wanting? I would perfer if my code didnt change much, I would like the activeX scipt to invoke the other tasks without worriing about "on success" options. I could easily do this with an ADO connection, but i want to attempt it this way as well. It gives it a more visually appealing look. Thanks again Ben "Allan Mitchell" wrote: You can either wrap the statement into your Active Script task or you could possibly adapt these How to loop through a global variable Rowset (http://www.sqldts.com/default.aspx?298) Looping, Importing and Archiving (http://www.sqldts.com/default.aspx?246) -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. www.SQLIS.com - You thought DTS was good. here we show you the new stuff. www.konesans.com - Consultancy from the people who know "Ben" <ben_1_ AT hotmail DOT com> wrote in message news D215127-9562-486D-A8FD-99EF755374B6 (AT) microsoft (DOT) com...I have an activeX task that performs a loop and at the end of every loop i want it to execute the exec sql task. I have tried: Set objSQL = DTSGlobalVariables.Parent.Tasks("DTSTask_DTSExecut eSQLTask_1").CustomTask ..... objSQL.Execute But i get an error "wrong number of arguments or invalide property" How can this be done? The reason im doing it this way is that the query the exec sql uses is dynamic to the current loop in the activeX control thanks for any and all help! Ben |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Hello, Sorry for troubling you after many years.Did you find the solution for this? I need exactly same functionality *now. Thanks. url:http://www.ureader.com/msg/11461238.aspx |
|
I could easily do this with an ADO connection |
![]() |
| Thread Tools | |
| Display Modes | |
| |