Posted by Karthik on 06/06/06 20:31
I'm attempting to call a storedprocedure from within an ActiveX task in
a DTS and am getting a "Command Text was not set for the command
object" error. I have no problem if I replace the stored procedure call
with the actual SQL.
Is it possible to directly call a SP via an ActiveX task? If yes, could
somebody help me with the syntax please?
This is what I have currently have
Set Conn = CreateObject("ADODB.Connection")
SQL = "exec (MySP)"
set RLoop=conn.Execute(SQL)
do while (NOT RLoop.EOF)
msgbox RLoop(1)
RLoop.MoveNext
Loop
TIA
Karthik
[Back to original message]
|