//  home   //  advanced search   //  news   //  categories   //  sql build chart   //  downloads   //  statistics
 ASP FAQ 
Home
ASP FAQ Tutorials

   8000XXXX Errors
   ASP.NET 2.0
   Classic ASP 1.0
   Databases
   General Concepts
   Search Engine Optimization (SEO)

Contact Us
Site Map

Search

Web
aspfaq.com
tutorials.aspfaq.com

ASP FAQ Tutorials :: 8000XXXX Errors :: Why do I get 80040E10 errors?


Why do I get 80040E10 errors?

When creating SQL statements in ASP, you might encounter one of the following errors: 
 
Microsoft JET Database Engine (0x80040E10) 
No value given for one or more required parameters. 
 
or 
 
Microsoft OLE DB Provider for ODBC Drivers error '80040e10' 
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected <n>. 
 
or 
 
Microsoft OLE DB Provider for SQL Server error '80040e10' 
Procedure '<procedure>' expects parameter '<param>', which was not supplied.
 
This error is due to one of the following things: 
  1. A field name was spelled incorrectly.
  2. One or more of the values was blank.
  3. You tried to insert the wrong datatype (e.g. surrounded a numeric value with quotes, or forgot to put quotes around a string).
To troubleshoot this, response.write your SQL statement: 
 
<% 
    sql = "EXEC proc_name @param1='foo', ..." 
    ' instead of conn.execute(sql) 
    Response.Write(sql) 
    Response.End 
%>
 
Make sure there is data for all params you are passing, and compare column names directly with those in the table. 
 
You can also use this response.write method to copy the SQL statement and execute it directly in the database, if the error message and the response.write statement aren't already giving you enough information. 
 
If parameters to a stored procedure should be optional, then use the following syntax: 
 
CREATE PROCEDURE dbo.proc_name 
    @param1 INT = NULL 
... 
 
(For a bit more detail, see Article #2348.)

Related Articles

Why do I get 8002000A errors?
Why do I get 80040200 / 80040514 / 800A0E7A errors?
Why do I get 80040e09 errors?
Why do I get 80040E0C errors?
Why do I get 80040E14 errors?
Why do I get 80040E21 errors?
Why do I get 80040E23 errors?
Why do I get 80040E24 errors?
Why do I get 80040E2F errors?
Why do I get 80040e30 errors?
Why do I get 80040E31 errors?
Why do I get 80040E37 errors?
Why do I get 80040e4e errors?
Why do I get 80040E54 errors?
Why do I get 80040E57 / 80040E07 errors?
Why do I get 8004D00A errors?
Why do I get 80070070 errors?
Why do I get 800A01FB errors?
Why do I get 800A0BB9 / 800A1391 errors?
Why do I get 800A0C93 errors?
Why do I get 800a0cb3 errors?
Why do I get 800A0CC1 errors?
Why do I get 800A0E78 errors?
Why do I get 800A0E7C errors?
Why do I get 800A0E7D errors?
80004005 Errors
Can I use the NZ() function without getting 80040E14 errors?

 

 


Created: 8/13/2000 | Last Updated: 12/17/2003 | broken links | helpful | not helpful | statistics
© Copyright 2006, UBR, Inc. All Rights Reserved. (66)

 

Copyright 1999-2006, All rights reserved.
Finding content
Finding content.  An error has occured...