ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 23rd, 2002, 03:44 PM
aspnewbie aspnewbie is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: The Great White North
Posts: 361 aspnewbie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m 50 sec
Reputation Power: 16
Send a message via MSN to aspnewbie
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 10:54 AM.

Reply With Quote
  #2  
Old November 4th, 2002, 08:54 AM
Matt M  Matt M  is offline
red house painter
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: South east England
Posts: 46  Matt M  User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 16
Send a message via ICQ to  Matt M Send a message via AIM to  Matt M
do you have an adodb command object somewhere?

Reply With Quote
  #3  
Old November 4th, 2002, 10:27 AM
aspnewbie aspnewbie is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: The Great White North
Posts: 361 aspnewbie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m 50 sec
Reputation Power: 16
Send a message via MSN to aspnewbie
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).

Reply With Quote
  #4  
Old November 11th, 2002, 04:45 PM
aspnewbie aspnewbie is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: The Great White North
Posts: 361 aspnewbie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m 50 sec
Reputation Power: 16
Send a message via MSN to aspnewbie
mea culpa. forgot to put the stored procedures in my list of sps. D'oh.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > SQL Error - Command text was not set for the command object


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap