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 April 24th, 2006, 10:53 AM
Registered User
 
Join Date: Apr 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Microsoft OLE DB error '80040e14'

I'm receiving Microsoft OLE DB error '80040e14'
that states:

Line 1: Incorrect syntax near ';'.

at Line 41 (which begins with the rsOpen statement)

The code is:

<%
aspUser=Request.ServerVariables("AUTH_USER")
aspID=Request.QueryString("ID")
Set conn = Server.CreateObject("ADODB.Connection")
strConnString="Provider=sqloledb;Data Source=devsql;Initial Catalog=CSOSAPhone;User ID=sa"
conn.open strConnString
Set rs = Server.CreateObject("ADODB.Recordset")
sql="SELECT * FROM Phone WHERE ID=" & aspID & ";"
rs.Open sql, conn, 3, 3
%>
<form method="POST" action="c:\inetpub\company\Phone\processChange.asp " name="form">

Can someone help me figure out what is wrong?

 
Old April 27th, 2006, 11:34 AM
Authorized User
 
Join Date: Mar 2006
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Raghunathan
Default

hi,

the problem is in the SELECT Query that you've written. It is having a semi-colon at the end of the query which is not required. Please remove it and check the code.



Regards,
Raghu





Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft OLE DB Provider for ODBC Drivers phantom3008 Classic ASP Basics 6 March 15th, 2007 09:39 AM
Microsoft JET Database Engine error '80040e14' aprnip Classic ASP Databases 6 December 10th, 2005 07:36 AM
Microsoft OLE DB Provider for ODBC Drivers error ' rajiv_software Classic ASP Basics 6 April 28th, 2005 12:52 AM
Microsoft JET Database Engine error '80040e14' aprnip Classic ASP Databases 2 November 15th, 2004 02:06 AM
Microsoft OLE DB Provider for ODBC Drivers surendran Classic ASP Databases 4 October 27th, 2003 10:23 AM





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