If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > ADODB.Command error '800a0d5d'

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-24-06, 12:59
afrika afrika is offline
Registered User
 
Join Date: Dec 2005
Posts: 12
ADODB.Command error '800a0d5d'

hello,
am not sure where to post this, either in ASP or MS SQL, the error below tends to show up from time to time when trying to run a script.

line 86 below is where my script calls a stored proceedure.

funny enough this error does not show up always

pls advice
Afrika

Code:
ADODB.Command error '800a0d5d' 

Application uses a value of the wrong type for the current operation. 

/welcome/welcome/messages/sendsms.asp, line 86
line 86 >> set cmdSms = Server.CreateObject("ADODB.Command")
Reply With Quote
  #2 (permalink)  
Old 01-24-06, 18:16
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
Um,... are you sure that is where the error is actually occuring??

I would wrap a pile of debugging around that line, write to a log file or something, because I can't see how that line would work one time and not the other, it's not like you have any variables involved or anything.
Reply With Quote
  #3 (permalink)  
Old 01-25-06, 01:47
afrika afrika is offline
Registered User
 
Join Date: Dec 2005
Posts: 12
Quote:
Originally Posted by rokslide
Um,... are you sure that is where the error is actually occuring??

I would wrap a pile of debugging around that line, write to a log file or something, because I can't see how that line would work one time and not the other, it's not like you have any variables involved or anything.
thanks for your reply.

Please explain how you would debug in "asp"
Reply With Quote
  #4 (permalink)  
Old 01-25-06, 06:13
kropes2001 kropes2001 is offline
Registered User
 
Join Date: Nov 2005
Location: Honolulu HI
Posts: 118
you can write output to the screen

response.write "section A<br>"
make the DB connsection
response.write "section b<br>"
Select a recordset
response.write "section c<br>"
run stored procedure
response.write "section d<br>"

thats one way of doing it.....
__________________
.
.
http://www.GetMySiteOnline.com - Can you help me Get My Site Online ? (Yes. That is EXACTLY what we do.)

http://www.GetMySiteOnline.com/FightingSpam/
__________________________
caeli enarrant gloriam Dei !
Reply With Quote
  #5 (permalink)  
Old 01-26-06, 17:14
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
yup, that would be my suggestion as well...
Reply With Quote
  #6 (permalink)  
Old 01-29-06, 06:02
afrika afrika is offline
Registered User
 
Join Date: Dec 2005
Posts: 12
Sorry this is late,
thanks I added an error handling function. after the on error resume next to catch the error

however the problem was a bit complex. i was using varchar(15) to save 11 characters, but when its passed in the asp page, the server.encode function would translate it to much more than 15 characters.

I have solved it now, i just increased the database values

thanks all
Afrika
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On