G
Guest
I'm trying to execute multiple update commands and I'm getting the error:
"Command text was not set for the command object. "
Session("aUpdateRows") is an array that contains Update statements (they are
there, there's no error with that)
This is how I have it written:
If Session("bUpdate") Then
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open Application("ConStr")
For nCtr = 0 to UBound(Session("aUpdateRows"),1)
oConn.Execute Session("aUpdateRows")(nCtr)
Next
oConn.Close
End If
Do you know why I get that error? Is there a better way to execute these
multiple updates?
Thanks!!
geniene
"Command text was not set for the command object. "
Session("aUpdateRows") is an array that contains Update statements (they are
there, there's no error with that)
This is how I have it written:
If Session("bUpdate") Then
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open Application("ConStr")
For nCtr = 0 to UBound(Session("aUpdateRows"),1)
oConn.Execute Session("aUpdateRows")(nCtr)
Next
oConn.Close
End If
Do you know why I get that error? Is there a better way to execute these
multiple updates?
Thanks!!
geniene