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

   8000XXXX Errors
   Alerts
   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 800A0E7D errors?


Why do I get 800A0E7D errors?

When using the command object to invoke a SQL Server stored procedure, you may have seen this error: 
 
ADODB.Command (0x800A0E7D) 
Requested operation requires an OLE DB Session object, which is not 
supported by the current provider. 
 
or 
 
ADODB.Command error '800a0e7d' 
The connection cannot be used to perform this operation. It is either closed 
or invalid in this context.
 
The most likely cause is that you are trying to set the command object's activeConnection to an invalid connection object, or you didn't set the activeConnection property at all. Check over your code, and make sure your connection object is valid and open before trying to set it as the active connection for your command object. Also, make sure you use the SET keyword: 
 
objCmd.ActiveConnection = objConn 
 
' should be: 
 
SET objCmd.ActiveConnection = objConn
 
Or, avoid using the command object altogether; it is unnecessary for most SP executions from ASP, unless you need output parameters / return values. 
 
Other possible causes include:
  • you are using SQLOLEDB, and have forcefully turned off pooling (either in the metabase or by adding "OLE DB Services=-2" to the connection string) — see Pooling in the Microsoft Data Access Com... for details on how to ensure that session pooling is enabled;
  • you are *not* using an OLE-DB connection string (see Article #2126);
  • you are using a File DSN which IUSR cannot access;
  • you lack permissions to connect to the SQL Server;
  • you haven't properly defined your ADODB.Command parameters;
  • you are explicitly declaring an ADODB.Recordset object when you could be getting by with a simpler invocation (see Article #2191); or,
  • you are using an ancient version of MDAC (upgrade to the most recent version at MDAC Download Page).

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 80040E10 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?
80004005 Errors
Can I use the NZ() function without getting 80040E14 errors?

 

 


Created: 4/16/2002 | Last Updated: 11/9/2003 | broken links | helpful | not helpful | statistics
© Copyright 2006, UBR, Inc. All Rights Reserved. (121)

 

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