Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 31st, 2004, 05:01 AM
Authorized User
 
Join Date: Nov 2004
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to tks_muthu
Default Microsoft JET Database Engine (0x80040E14)

Hi All!

i got the the following error while on open the recordset.
plx explain.
Microsoft JET Database Engine (0x80040E14)Syntax error in FROM clause.

it's my source code :
<%@ Language="VBScript" %>

<%
'declare the variables
Dim cn , rs
Dim sSQL, sConnStr

'declare SQL statement
sSQL="SELECT * FROM [User]"

sConnStr="PROVIDER=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & Server.MapPath("Login.mdb")


'create an ADO connection and recordset
Set cn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")

'Open the connection to the database
cn.Open sConnString

'Open the recordset object, execute the SQL statement
rs.Open sSQL,cn,3,1,2
%>



Muthu
__________________
Muthu
 
Old December 31st, 2004, 06:36 AM
Registered User
 
Join Date: Jun 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

try changing your sql to:
sSQL="SELECT * FROM User"


----------------------------------------------------------
I hear that the song "Hot Shot City" is particularly good.
----------------------------------------------------------
 
Old December 31st, 2004, 07:11 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sureshbabu Send a message via Yahoo to sureshbabu
Default

Hi,
   I think "User" is a key word. Change the name of the table to some other name and try again.
Thanks
Suresh

 
Old January 1st, 2005, 03:39 PM
Authorized User
 
Join Date: Dec 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

User is indeed a key word. Also avoid the common mistake of having a field called password. It is also a keyword.

 
Old January 1st, 2005, 10:15 PM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

I don't think that should be a problem. Though it is advisable to avoid keywords while creating columns names etc., ... in some unavoidable!!! situations if we create it we can use it within a square bracket. Say, [Name]

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com
 
Old January 1st, 2005, 10:17 PM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

btw I forgot to say that I have used it only in SQL Analyser .. and I am not too sure whether my statement holds good for ASP pages also.

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com





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 [email protected] 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) HaverkPJ Classic ASP Databases 2 November 16th, 2004 11:25 PM
Microsoft JET Database Engine (0x80040E14) Syntax Greywacke Classic ASP Databases 1 February 14th, 2004 01:15 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.