Could someone please tell me how can i check if there is an active connection to sybaseIQ? I would like to perform a check before sending statements so that I have a chance to re-establish the connection in case it was lost.
I am using sacapi.h, sacapidll.cpp, sacapidll.h (SQL Anywhere C API which is layered on top of the DBLIB package and it was implemented with Embedded SQL).
I don't think callbacks are supported. I can't find documentation on sqlany_register_callback in the SybaseIQ documentation
Hm, according to the v16 online docs, I stand corrected w.r.t. my statement the C API would not support a callback (I had just checked for v12.0.1, see my comment on the question):
Note: That's what the docs say, I have not tested that myself...
And here's the whole story including a sample from the according CR note 738036 as released with v184.108.40.2062 and above, and these versions do contain an according sample "callback.cpp", too.