Question : Recieve "An exception occurred: 'Execute'" error on one web server (ASP/MySQL)

When I go to my asp site on one web sever I get the following error:

Microsoft VBScript runtime  error '800a01fb'
An exception occurred: 'Execute'

The same code works fine on two other web servers I have tested.

I have attached the code of one of my pages, however I do not think it is a problem with my code.

I am using ASP and MySQL.

Thank you in advance,

Drew
Code Snippet:
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:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:

 
<%
 
Dim connectstr, Pconnectstr, Qconnectstr, totalscreens
Dim oConn
Dim oRS
Dim table
 
totalscreens = 13
 
connectstr = "DRIVER={MySQL ODBC 5.1 Driver}; SERVER=000.000.000.000; DATABASE=abc; UID=abc;PASSWORD=abc; OPTION=3;charset=utf-8" 
 
 
Dim RID, AID, Status, ReRID, ReAID, approved
 
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open connectstr
qry = "SELECT * FROM Respondents ORDER by LName,FName"
 
Set oRS = oConn.Execute(qry)
 
if not oRS.EOF then
while not oRS.EOF
RID = oRS("RID")
AID = oRS("AID")
ReRID = request("RID")
ReAID = request("AID")
Session.timeout=120
Session("RID") = ReRID
Session("AID") = ReAID
Status = oRS("Status")
 
If RID = ReRID AND AID = ReAID Then
approved = "1"
If Left(Status,6) <> "screen" AND Status <> "done" AND Left(Status,3) <> "QS2" Then
Response.redirect("screen0.asp")
End If
 
If Left(Status,6) = "screen" OR Left(Status,3) = "QS2" Then
Response.redirect(Status)
End If
Else
'Response.redirect("authfailed.asp")
End If
 
 
oRS.movenext
wend
oRS.close
end if
 
Set oRs = nothing
Set oConn = nothing
 
If approved <> "1" Then
Response.redirect("authfailed.asp")
End If
%>
 
 



Ivey Survey


 

 

 

Your survey was completed.

Thank you!

 

 

 

 

Open in New Window Select All

Answer : Recieve "An exception occurred: 'Execute'" error on one web server (ASP/MySQL)

Have you looked at the MDAC installed on the newer server? It could be an security mishmash.
This article explains correcting a similar issue in .Net.

At least check to make sure all versions of the MDAC coincide.
http://support.microsoft.com/kb/815117
Random Solutions  
 
programming4us programming4us