Fetch rows

When the cursor command is TDS-CURSOR-FETCH, the client is fetching a row through a cursor. In response, the Gateway-Library transaction calls the following functions:

Function

Action

TDCURPRO

Determine the type of cursor command (FETCH).

[application logic]

[Adjust the cursor]

TDSNDROW

Send back n rows of results.

TDSNDDON

Send the reply to the client.

TDGETREQ

Retrieve the next part of the cursor request.