|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
SQL Error - Command text was not set for the command object
I've added the following code to a registration page, to allow a user's registration to be cancelled.
Code:
If "" & request("Cancel") <> "" then
paramlist = iUID & "," & iEID
set oRSCancelEventUser = CreateObject("ADODB.RecordSet")
set oRSCancelEventUser= DB.GetRS(sql.GetStr
(CancelUserEventEntry,paramlist),sMsg)
if sMsg = "" then
set oRSCancelEventUser = nothing
response.redirect "EventRegistrations.asp"
else
response.write sMsg
end if
set oRSCancelEventUser = nothing
end if
The error I receive is "GetRS : Command text was not set for the command object." Any ideas as to the problem or suggestions as to how to debug? Thanks in advance. Last edited by aspnewbie : November 12th, 2002 at 09:54 AM. |
|
#2
|
|||
|
|||
|
do you have an adodb command object somewhere?
|
|
#3
|
|||
|
|||
|
You mean aside from the
set oRSCancelEventUser = CreateObject("ADODB.RecordSet")??? (I did declare the top of the page, but didn't include in this snippet). |
|
#4
|
|||
|
|||
|
mea culpa. forgot to put the stored procedures in my list of sps. D'oh.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > SQL Error - Command text was not set for the command object |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|