?
Solved

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

Posted on 2004-09-07
8
Medium Priority
?
1,435 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
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
 

Accepted Solution

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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

777 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