When the cursor command is TDS-CURSOR-OPENCMD, the client is executing the body of the cursor and generating a cursor result set. In response, the Gateway-LibraryThinSpace transaction calls the following functions:
Function  | 
Action  | 
|---|---|
TDCURPRO  | 
Determine the type of cursor command (OPEN, in this case).  | 
TDNUMPRM  | 
Retrieve the number of parameters associated with the cursor.  | 
TDRCVPRM  | 
Retrieve cursor parameters (once for each parameter).  | 
TDCURPRO  | 
Send the cursor status to the client.  | 
TDESCRIB  | 
Describe column results to the client (once for each column).  | 
TDSETUDT  | 
[optional] Set user datatype, if needed.  | 
TDSNDDON  | 
Send the reply to the client.  | 
TDGETREQ  | 
Retrieve the next part of the cursor request.  |