BUG: Error Message "Rows Must Be Released" with SQLOLEDB and ADO Recordset Events (257731)
The information in this article applies to:
- Microsoft Data Access Components 2.1
- Microsoft Data Access Components 2.5
- Microsoft Data Access Components 2.6
- Microsoft Data Access Components 2.7
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q257731 SYMPTOMS
If a user opens an ActiveX Data Object (ADO) recordset by using the OLE DB Provider for SQL Server, sets the CursorLocation property to adUseServer, uses the WithEvents keyword, updates the same record more than once, and then executes a Move method such as MoveNext, the following error message appears
in MDAC versions 2.5 and later:
80040e25: Row handles must be released before new ones can be obtained
in prior MDAC versions:
All HROWs must be released before new ones can be obtained
RESOLUTION
This error message can be avoided in one of the following ways:
- Using a CursorLocation property of adUseClient.
-or-
- Implementing code that moves off the changed record after each Update (for example, a MoveNext and MovePrevious method pair).
-or-
- Executing the Requery method of the Recordset after each Update.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 12/3/2003 |
---|
Keywords: | kbBug kbDatabase kbpending KB257731 |
---|
|