UltraLite Static C++ User's Guide
C++ API Reference
ULConnection class
an_SQL_code GetSQLCode( )
Provides error checking capabilities by checking the SQLCODE value for the success or failure of a database operation. The SQLCODE is the standard Adaptive Server Anywhere code.
SQLCODE is reset by any subsequent UltraLite database operation, including those on other connections.
The SQLCODE value as an integer.
The following code writes out a SQLCODE. If the synchronization call fails, a value of -85 is returned.
conn.Synchronize( &synch_info ); sqlcode = conn.GetSQLCode(); printf("sqlcode: %d\n", sqlcode );