PRB: CursorType Returns adOpenStatic from Server-Side Recordset and Behaves Like a Forward-Only Recordset
This article was previously published under Q306388 On This PageSYMPTOMS
If you request a static, server-side cursor from a SQL stored procedure, you cannot use MovePrevious or MoveFirst to move backward through the recordset. The cursor exhibits the behavior of a forward-only cursor. NOTE: This problem only occurs if there are user-defined variables in the stored procedure or SQL commands such as SET NOCOUNT ON. After you run MovePrevious or MoveFirst, you receive the following error message:
Run-time error '-2147217884(80040e24)'; Rowset does not support fetching backward. MORE INFORMATIONSteps to Reproduce Behavior
REFERENCESFor additional information, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
123008 (http://support.microsoft.com/kb/123008/EN-US/) HOWTO: Set Up ODBC Data Sources When Distributing Apps
171146 (http://support.microsoft.com/kb/171146/EN-US/) HOWTO: Create and Remove a DSN in Visual Basic
306385 (http://support.microsoft.com/kb/306385/EN-US/) PRB: CursorType Returns adOpenStatic When You Request adOpenDynamic from a Server-Side Recordset
APPLIES TO
| Article Translations
|
Back to the top
