Solved

ADODB.Command error '800a0d5d': Application uses a value ...

Posted on 2004-09-07
8
1,427 Views
Last Modified: 2010-08-05
Hi,

I am using a Stored Procedure to insert data into a db. The ASP code is:

Set myCon = Server.CreateObject("DBCon.DBConnect")

      Set MYCmd=Server.createObject("ADODB.Command")
    myCmd.ActiveConnection = myCon.Connect()
    MYCmd.CommandType=adcmdStoredProc
    MYCmd.CommandText="Get_List"

    Set MYParam = MYCmd.CreateParameter("auditid", adinteger, adParamInput, 4)
        MYCmd.Parameters.Append MyParam
        MYCmd.Parameters("prodid")= prodid

    Set MYParam = MYCmd.CreateParameter("Loginid", adinteger, adParamInput, 4)
        MYCmd.Parameters.Append MyParam
        MYCmd.Parameters("Loginid")= loginid

    Set MYRS = MYCmd.Execute

The prodid and the loginid are variables that are supplied to this page from a previous page using querystrings appended to the URL (like page.asp?prodid=<%=productid%> etc).

I am getting the following error on executing the stored proc.

"ADODB.Command error '800a0d5d'
Application uses a value of the wrong type for the current operation. "

Any ideas?

Regards
Sridhar
0
Comment
Question by:sridharj_ap
  • 4
  • 3
8 Comments
 
LVL 15

Expert Comment

by:joeposter649
ID: 11996511
Try using ...
set myCmd.ActiveConnection = myCon

I assume you have created and opened myCon.
0
 
LVL 1

Author Comment

by:sridharj_ap
ID: 11996604
Hi,

Thanks for the reply. Actually, this script is running on a production server. I have created an exact copy on a test server and is running fine there also. What I am trying to do is create a page with 3 frames in it and call 3 pages in the 3 frames so that the whole appears to be one single page with different forms.

When I call the framed page only I am getting this error.

Regards
Sridhar
0
 
LVL 15

Expert Comment

by:joeposter649
ID: 11997904
Do you close your connections and set your objects to nothing.
0
 
LVL 1

Author Comment

by:sridharj_ap
ID: 12003435
Hi,

Yes, I do. But I was wondering about something (I didn't think of it until I saw your response).

All the 3 pages use the same variables. Previously, when they were separate pages, they were mutually exclusive, i.e., you could call only page at a time. Now, all 3 pages are called simultaneously (remember? They are now in a single frame). Could this be an issue?

Regards
Sridhar
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Author Comment

by:sridharj_ap
ID: 12005299
Hi,

This is not an issue since I changed all the variables, so that they are different in all pages. But still, I am getting an error.

Regards
Sridhar
0
 
LVL 1

Author Comment

by:sridharj_ap
ID: 12023582
Hi,

I found the bug! The query string from the previous page was not populating in this page.

Regards
Sridhar

P.S: As the responses have not pointed to the solution nor have forced me to look in that direction, I am sorry that I cannot allocate any points. So how do I close the query without assigning points?
0
 
LVL 15

Expert Comment

by:joeposter649
ID: 12026531
0
 

Accepted Solution

by:
PashaMod earned 0 total points
ID: 12042483
Closed, 100 points refunded.
PashaMod
Community Support Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now