csr_disp_scrollcurs.c sample program

The csr_disp_scrollcurs.c sample program uses a scrollable cursor to retrieve data from the authors table in the pubs2 database. It performs the following:

This example uses a single prefetch buffer and regular program variables. Following is the canned query:

select au_fname, au_lname, postalcode 
from authors

For more information about this sample program, see the leading comments in the example source file.

NoteThis example requires Adaptive Server version 15.0 or later, with scrollable cursor support and the pubs2 database.