ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old July 28th, 2000, 07:56 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 23
Database Error

<i><b>Originally posted by : Hanoz Elavia (hanozelavia@hotmail.com)</b></i><br />i've created a few database driven asp pages and my connection method is always standard for all pages but one of the pages just doesn't work. it gives the following error<br /><br />Microsoft OLE DB Provider for ODBC Drivers error '80040e10' <br /><br />[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1. <br /><br />/indata/getlists.asp, line 37 <br /><br />my connection code is<br /><br />Dim objConn<br />Dim objRst<br />Dim strSql<br /><br />Set objConn = Server.CreateObject("ADODB.Connection")<br /><br />objConn.Open("DRIVER={Microsoft Access Driver (*.mbd)}; DBQ=C:My Documentsdb_name.mdb")<br /><br />strSql = "Some Select Statement"<br /><br />Set objRst = objConn.Execute(strSql)<br /><br />this code always works all the time, except for one page.<br /><br />please help<br /><br />

Reply With Quote
  #2  
Old July 28th, 2000, 11:05 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 23
<i><b>Originally posted by : M.Krishna Reddy (mckreddy@yahoo.com)</b></i><br />Check your sql statement and field names in the table. This error occurs when the field name you specified in the sqlstatement not present in the table.<br /><br />This error occurs only with Microsoft Access when one of the column names specified in a select statement does not exist in the table being queried. <br /><br />If you use ActiveX Data Objects (ADO) to manipulate data in an Access database from within an Active Server Pages (ASP), and you refer to a column in a table that does not exist then only the error u specified occurs.<br /><br />RESOLUTION<br />Remove any invalid column names from the select statement<br /><br />------------<br />Hanoz Elavia at 7/28/2000 4:56:52 AM<br /><br />i've created a few database driven asp pages and my connection method is always standard for all pages but one of the pages just doesn't work. it gives the following error<br /><br />Microsoft OLE DB Provider for ODBC Drivers error '80040e10' <br /><br />[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1. <br /><br />/indata/getlists.asp, line 37 <br /><br />my connection code is<br /><br />Dim objConn<br />Dim objRst<br />Dim strSql<br /><br />Set objConn = Server.CreateObject("ADODB.Connection")<br /><br />objConn.Open("DRIVER={Microsoft Access Driver (*.mbd)}; DBQ=C:My Documentsdb_name.mdb")<br /><br />strSql = "Some Select Statement"<br /><br />Set objRst = objConn.Execute(strSql)<br /><br />this code always works all the time, except for one page.<br /><br />please help<br /><br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > Database Error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT