BUG: ESQL-C Precompiler Generates Syntax Errors on Cursors

Last reviewed: July 8, 1997
Article ID: Q170304
The information in this article applies to:
  • Microsoft Embedded SQL for C Programmer's Toolkit, version 6.50
BUG #: 15939 (NT: 6.50)

SYMPTOMS

When attempting to define an ESQL-C cursor using the SCROLL or INSENSITIVE keywords, the precompiler generates a syntax error.

STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server Embedded SQL for C Programmer's Toolkit version 6.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

A SCROLL cursor allows first, last, and backwards fetch operations.

   EXEC SQL SET CURSORTYPE CUR_STANDARD;
   EXEC SQL SET SCROLLOPTION KEYSET;

   EXEC SQL DECLARE curAuthor CURSOR FOR SELECT au_fname from authors;

An INSENSITIVE cursor has a fixed membership (defined at open) and does not allow updates.

   EXEC SQL SET SCROLLOPTION KEYSET;

   EXEC SQL DECLARE curAuthor CURSOR FOR SELECT au_fname from authors
   FOR READ ONLY;


Additional query words: 6.50.204
Keywords : kbbug6.50 kbprg ssrvesql_c SSrvProg
Version : 6.5
Platform : WINDOWS
Issue type : kbbug
Resolution Type : kbpending


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 8, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.