PRB: Recordset DTC Error with Empty Recordset (301437)
The information in this article applies to:
- Microsoft Visual InterDev 6.0
This article was previously published under Q301437 SYMPTOMS
When you use the Visual InterDev 6.0 Recordset Design-Time Control (DTC), if you view the Active Server Pages (ASP) page in a Web browser, you may receive one the following error messages:
ADODB.Recordset error '800a0e78'
The operation requested by the application is not allowed if the object is closed.
/Project20/_ScriptLibrary/Recordset.ASP, line xxx
ADODB.Recordset (0x800a0e78) Operation is not allowed when the object is closed.
/<Web name>/_ScriptLibrary/Recordset.ASP, line 762
Note that the line number reference in the preceding error may differ according to different versions of Script Library.
CAUSE
This error is returned to the browser when you try to run a SQL statement that does not return any records. For example, SQL clauses such as INSERT, UPDATE, DELETE, and/or stored procedures that do not return values may generate one of the above-mentioned error messages.
RESOLUTION
There are two possible workarounds to this behavior:
REFERENCESFor additional information on creating database connections, click the article number below
to view the article in the Microsoft Knowledge Base:
300382 HOW TO: Create a Database Connection from an ASP Page in IIS
For additional information on similar problems while using stored procedures, click the article number below
to view the article in the Microsoft Knowledge Base:
190762 PRB: Cannot Access a Stored Procedure's Return Value from DTC
For more information on Data Commands, see the following MSDN article:
Modification Type: | Major | Last Reviewed: | 2/13/2002 |
---|
Keywords: | kbCtrl kbDSupport kbprb KB301437 |
---|
|