Returning rows

The processing of row data requires three basic steps:

  1. Describe each column in the row by calling srv_descfmt.

  2. Indicate where the application has stored the row data and identify its format by calling srv_bind.

  3. Transfer the data from the application program variables specified in step 2 to the client by calling srv_xferdata.

The srv_descfmt routine must be called once for each column in a row; however srv_xferdata and srv_bind routines are called as many times as there are result rows. An application must not call srv_xferdata until all columns have been described and bound.

An application must invoke the three routines with their cmd arguments set to CS_SET as the application returns results to the client.