Contents Index GetLastDownloadTime method GetSynchResult method pdf/preface.pdf

UltraLite User's Guide
  C++ API Reference
    ULConnection class

GetSQLCode method


Prototype 

an_SQL_code  GetSQLCode( )

Description 

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.

Returns 

The SQLCODE value as an integer.

Example 

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 );
See also 

Database Error Messages


Contents Index GetLastDownloadTime method GetSynchResult method pdf/preface.pdf