This example program contains two files, ex_alib.c and ex_amain.c, which demonstrate how to write an asynchronous layer on top of Client-Library. It uses hooks provided by Client-Library to allow seamless polling and use of Client-Library’s completion callbacks.
The example program contains two files:
ex_alib.c – contains the source code of the library portion of the example. It is meant to be part of a library interface that supports asynchronous calls. This module provides a way to send a query to and retrieve the results from a server, all within one asynchronous operation.
ex_amain.c – contains the source code of the main program that uses the services provided by ex_alib.c.
For more information about this example program, see the leading comments in the example source file and the EX_AREAD.ME file.
This example requires SQL Server version 11.1 or later
(or Adaptive Server).