Advertisement

03.26.2008 at 06:20AM PDT, ID: 23270247
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

What's wrong with my sql statement?

Asked by stroudtx in MySQL Server

Tags:

This sql statement works 99.9% of the time, but I get execute issues on various pages with the same sql.  What could be wrong. I'm using mysql 5.1 and ODBC 3.5
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
<%
Dim product_details__MMColParam
product_details__MMColParam = "34"
If (Request("MM_EmptyValue")  <> "") Then 
  product_details__MMColParam = Request("MM_EmptyValue") 
End If
%>
 
<%
Dim product_details__MMColParam2
product_details__MMColParam2 = "99"
If (Request("MM_EmptyValue")  <> "") Then 
  product_details__MMColParam2 = Request("MM_EmptyValue")
End If
%>
 
<%
Dim product_details__MMColParam3
product_details__MMColParam3 = "99"
If (Request("MM_EmptyValue")  <> "") Then 
  product_details__MMColParam3 = Request("MM_EmptyValue")
End If
%>
 
<%
Dim product_details__MMColParam4
product_details__MMColParam3 = "99"
If (Request("MM_EmptyValue")  <> "") Then 
  product_details__MMColParam3 = Request("MM_EmptyValue")
End If
%>
 
<%
Dim product_details
Dim product_details_cmd
Dim product_details_numRows
 
Set product_details_cmd = Server.CreateObject ("ADODB.Command")
product_details_cmd.ActiveConnection = MM_mysql_db_STRING
product_details_cmd.CommandText = "SELECT * FROM mysql_store.products WHERE (MFG_ID In (?,?,?,?) AND (Product_ID IN (SELECT DISTINCT Product_ID_Detail FROM product_details WHERE Inventory_Count > 0 or P_Inventory_Count >0))) Order by " & Sortby
product_details_cmd.Prepared = true
product_details_cmd.Parameters.Append product_details_cmd.CreateParameter("param1", 5, 1, -1, product_details__MMColParam) ' adDouble
product_details_cmd.Parameters.Append product_details_cmd.CreateParameter("param2", 5, 1, -1, product_details__MMColParam2) ' adDouble
product_details_cmd.Parameters.Append product_details_cmd.CreateParameter("param3", 5, 1, -1, product_details__MMColParam3) ' adDouble
product_details_cmd.Parameters.Append product_details_cmd.CreateParameter("param4", 5, 1, -1, product_details__MMColParam4) ' adDouble
 
Set product_details = product_details_cmd.Execute
product_details_numRows = 0
%>
[+][-]03.26.2008 at 06:25AM PDT, ID: 21211308

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MySQL Server
Tags: An exception occurred: 'Execute'
Sign Up Now!
Solution Provided By: amacleod1983
Participating Experts: 2
Solution Grade: A
 
 
[+][-]03.26.2008 at 06:27AM PDT, ID: 21211324

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.26.2008 at 07:06AM PDT, ID: 21211723

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.26.2008 at 07:21AM PDT, ID: 21211867

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628