The CLIENTC2 sample CSA issues a request and receives results from an Adaptive Server Enterprise database table. It illustrates:
Specifying an attachment definition name
Using an SPAREA definition
Setting up a request buffer and executing requests
Defining an input data pipe and SQLDA template and using a SQLDA definition provided by Open ClientConnect to receive results
Using the RESCHECK and GETMSG commands to ensure the SQL requests are successful and that error handling works
CLIENTC2 uses a DB2 input pipe and a SQLDA definition to receive results from a remote server (in this case, Adaptive Server Enterprise). The SQLDA definition provides data structure information that is sent with the data to the CSA.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |