Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Databases
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old November 16th, 2004, 12:40 AM
Registered User
Join Date: Nov 2004
Location: Hudsonville, MI, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Microsoft JET Database Engine (0x80040E14)

Can anyone help with the following error?

HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services


Technical Information (for support personnel)

Error Type:
Microsoft JET Database Engine (0x80040E14)
Internal OLE Automation error
/depts/pharmacy/risklink/login_post.asp, line 56

The Access 2000 query SQL is as follows:
PARAMETERS [USERNAME] Text ( 255 ), [PWORD] Text ( 255 );
FROM Staff_Members
WHERE (((Staff_Members.UserName)=[USERNAME]) AND ((Staff_Members.Pwd)=[PWORD]) AND ((Staff_Members.Status)<>1));

Code from the page is as follows:

Dim cn
Dim cmd
Dim objParam
Dim objParam_pwd
Dim rsAuthenticated

'Open connection
Set Cn = Server.CreateObject("adodb.connection")
cn.provider = ps & " Data Source=" & Server.MapPath(ds)

'Create command to view the current topics
Set cmd = Server.CreateObject("adodb.command")
Set cmd.ActiveConnection = cn
cmd.CommandText = "qryStaffMember_Authenticate"
cmd.CommandType = adCmdStoredProc

'Create the parameters
Set objParam = cmd.CreateParameter
objParam.name = "USERNAME"
objParam.type = adVarChar
objParam.direction = adParamInput
objParam.size = 10
objParam.value = Cstr(Request.Form("txtUserName"))
'Append the parameter to the command object
cmd.Parameters.append objParam

Set objParam_pwd = cmd.CreateParameter
objParam_pwd.name = "PWORD"
objParam_pwd.type = adVarChar
objParam_pwd.direction = adParamInput
objParam_pwd.size = 10
objParam_pwd.value = CStr(Request.Form("txtPwd"))
'Append the parameter to the command object
cmd.Parameters.append objParam_pwd

'Create the recordset
Set rsAuthenticated= Server.CreateObject("adodb.recordset")
rsAuthenticated.CursorType = adOpenForwardOnly
rsAuthenticated.LockType = adLockReadOnly
Set rsAuthenticated = cmd.Execute() <-- line 56 -

Runs on Windows 2000. Does not run on Win XP SP2.

Any help would be greatly appreciated!

Reply With Quote
  #2 (permalink)  
Old November 16th, 2004, 03:44 AM
Friend of Wrox
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post

Check out this sample code for reference and see what you are missing.

Using stored proc in ASP with command object

Hope that helps.

- Vijay G
Strive for Perfection
Reply With Quote
  #3 (permalink)  
Old November 16th, 2004, 11:25 PM
Registered User
Join Date: Nov 2004
Location: Hudsonville, MI, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Nope. Checked the code versus the example. Even changed the multi-line properties to single line as in the example. Same error.

Thought maybe it is a provide error. Switched to *.mdb driver directly and via a system DSN. Both report an automation error on the cmd.execute line.

Any other ideas? I'm just worried about when we switch our corporate web server from Win2000 to WinXP.


Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft JET Database Engine (0x80040E07) gwalker_ne8 Classic ASP Databases 2 November 11th, 2006 09:32 AM
Microsoft Jet Database Engine Cannot Open hunzian78@yahoo.com ADO.NET 3 February 23rd, 2006 01:40 PM
NEW: Microsoft JET Database Engine error'80040e14' rishinicolai Classic ASP Databases 4 December 13th, 2005 05:58 AM
Microsoft JET Database Engine (0x80040E14) tks_muthu Classic ASP Databases 5 January 1st, 2005 10:17 PM
Microsoft JET Database Engine (0x80040E14) Syntax Greywacke Classic ASP Databases 1 February 14th, 2004 01:15 PM

All times are GMT -4. The time now is 10:13 AM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.