ID: Q170304
The information in this article applies to:
When attempting to define an ESQL-C cursor using the SCROLL or INSENSITIVE keywords, the precompiler generates a syntax error.
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.
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 : kbprg SSrvESQL_C SSrvProg kbbug6.50
Version : 6.5
Platform : WINDOWS
Issue type : kbbug
Solution Type : kbpending
Last Reviewed: July 10, 1997