473,327 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

0x800A01FB error

My page is producing the following error:

Microsoft VBScript runtime (0x800A01FB)
An exception occurred: 'Execute'
Validate.asp, line 15

The affected code (line 15) in Validate.asp is:
Set rs = conn.Execute(SQLString)

The SQLString that it runs is:
SQLString = "SELECT M.MANAGERID, M.BRANCHID, M.PERSONALID,
M.FIRSTNAME, M.SURNAME, M.TELEPHONENO, M.EMAIL, M.PASSWORD
FROM MANAGER M
WHERE ( M.PERSONALID = '" & LoginId & "' )
AND ( M.PASSWORD = '" & LoginPass & "' )"

Set rs = conn.Execute(SQLString)
The values for LoginId and LoginPass are retrieved this
way:
LoginId = request.form("LoginId")
LoginPass = request.form("LoginPass")

The Oracle 9i db connection string is:

Dim connStr, conn
connStr = "PROVIDER=MSDASQL; DRIVER={Microsoft ODBC for
ORACLE}; SERVER=servername; UID=idnumber; PWD=password;"
Set conn = Server.CreateObject("ADODB.Connection")
conn.Mode = 3
conn.Open connStr

What is causing the runtime error?

Jul 19 '05 #1
4 3617
Can you show the whole relevant code (e.g. where is the conn.open)?

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Luis" <an****@webmail.co.za> wrote in message
news:96****************************@phx.gbl...
My page is producing the following error:

Microsoft VBScript runtime (0x800A01FB)
An exception occurred: 'Execute'
Validate.asp, line 15

The affected code (line 15) in Validate.asp is:
Set rs = conn.Execute(SQLString)

The SQLString that it runs is:
SQLString = "SELECT M.MANAGERID, M.BRANCHID, M.PERSONALID,
M.FIRSTNAME, M.SURNAME, M.TELEPHONENO, M.EMAIL, M.PASSWORD
FROM MANAGER M
WHERE ( M.PERSONALID = '" & LoginId & "' )
AND ( M.PASSWORD = '" & LoginPass & "' )"

Set rs = conn.Execute(SQLString)
The values for LoginId and LoginPass are retrieved this
way:
LoginId = request.form("LoginId")
LoginPass = request.form("LoginPass")

The Oracle 9i db connection string is:

Dim connStr, conn
connStr = "PROVIDER=MSDASQL; DRIVER={Microsoft ODBC for
ORACLE}; SERVER=servername; UID=idnumber; PWD=password;"
Set conn = Server.CreateObject("ADODB.Connection")
conn.Mode = 3
conn.Open connStr

What is causing the runtime error?

Jul 19 '05 #2
On Mon, 2 Aug 2004 12:10:53 -0400, "Aaron [SQL Server MVP]"
<te*****@dnartreb.noraa> wrote:
Can you show the whole relevant code (e.g. where is the conn.open)?


<%
Dim strLoginId, strLoginPass, strAuthenticated, SQLString, rs,
connStr, conn
strLoginId = Request.Form("LoginId")
strLoginPass = Request.Form("LoginPass")

connStr = "PROVIDER=MSDASQL; DRIVER={Microsoft ODBC for ORACLE};
SERVER=servername;UID=userid;PWD=password;"
Set conn = Server.CreateObject("ADODB.Connection")
conn.Mode = 3
conn.Open connStr

SQLString = "SELECT M.MANAGERID, M.BRANCHID, M.PERSONALID,
M.FIRSTNAME, M.SURNAME, M.TELEPHONENO, M.EMAIL, M.PASSWORD " & _
"FROM MANAGER M " & _
"WHERE ( M.PERSONALID = '" & strLoginId & "' ) " & _
"AND ( M.PASSWORD = '" & strLoginPass & "' )"

Set rs = conn.Execute(SQLString)

If rs.eof Then
Response.Redirect "Login.asp?Msg=Error"
Else Do While Not rs.eof
If strLoginId = rs("PERSONALID") And strLoginPass =
rs("PASSWORD") Then
session("Passwd") = rs("PASSWORD")
End If
rs.MoveNext
Loop
Response.Redirect "Search.asp"
End If

rs.Close
Set rs = nothing
conn.Close
Set conn = nothing
%>

Jul 19 '05 #3

One other thing, if I refresh the page by pressing the F5 key it usually
loads correctly.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #4
Luis wrote:
On Mon, 2 Aug 2004 12:10:53 -0400, "Aaron [SQL Server MVP]"
<te*****@dnartreb.noraa> wrote:
Can you show the whole relevant code (e.g. where is the conn.open)?


<%
Dim strLoginId, strLoginPass, strAuthenticated, SQLString, rs,
connStr, conn
strLoginId = Request.Form("LoginId")
strLoginPass = Request.Form("LoginPass")

connStr = "PROVIDER=MSDASQL; DRIVER={Microsoft ODBC for ORACLE};
SERVER=servername;UID=userid;PWD=password;"
Set conn = Server.CreateObject("ADODB.Connection")
conn.Mode = 3
conn.Open connStr

SQLString = "SELECT M.MANAGERID, M.BRANCHID, M.PERSONALID,
M.FIRSTNAME, M.SURNAME, M.TELEPHONENO, M.EMAIL, M.PASSWORD " & _
"FROM MANAGER M " & _
"WHERE ( M.PERSONALID = '" & strLoginId & "' ) " & _
"AND ( M.PASSWORD = '" & strLoginPass & "' )"

Set rs = conn.Execute(SQLString)

If rs.eof Then
Response.Redirect "Login.asp?Msg=Error"
Else Do While Not rs.eof
If strLoginId = rs("PERSONALID") And strLoginPass =
rs("PASSWORD") Then
session("Passwd") = rs("PASSWORD")
End If
rs.MoveNext
Loop
Response.Redirect "Search.asp"
End If

rs.Close
Set rs = nothing
conn.Close
Set conn = nothing
%>

I am going to assume that the problem is with your sql statement. You cannot
debug a sql statement without knowing what that statement is. The only way
to know is to response.write it. Change your code to this:

SQLString = " ... "
On error Resume Next
Set rs = conn.Execute(SQLString)
If err <> 0 then
response.write "The following error occurred:<BR>"
response.write err.description & "<BR>"
response.write "The sql statement that caused it was:<BR>"
response.write SQLString
set rs=nothing
conn.close: set conn=nothing
response.end
end if
On error GoTo 0
If rs.eof then
'etc.

Show us the result if seeing the sql statement does not clue you into the
problem. (feel free to censor the password - just make it clear that you are
doing so)

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two...
5
by: Tony Wright | last post by:
Hi, I am having a problem installing an msi for a web site. The error message I am getting is: "The specified path 'http://mipdev05/features/Fas2' is unavailable. The Internet Information...
1
by: Aravind | last post by:
we have two files: 1. rc4.c (defines one function "create_pin()") 2. MyImpl.c(calling the function "create_pin()"),This implements JNI method. 1.When I am trying to create .dll file with one...
1
by: yanwan | last post by:
I met this problem in executing a c++ project in visual studio. Does anyone have suggestions to resolve "error lnk 2001"? --------------------Configuration: reconstruction - Win32...
13
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
1
by: jimmylee | last post by:
Hi All,Please help me check my code. I have got running time error (0x800A01FB).An exception occurred: 'objConn.Execute' some records execute but some records don't. I have no idea how to solve...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.