[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

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

Posted on 2004-09-07
8
Medium Priority
?
1,437 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Independent Software Vendors: 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!

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

650 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