Collection Contents Previous Next PDF

UltraLite.NET User's Guide

iAnywhere.UltraLite namespace

Connection class

LastSQLCode property


The SQL code value for the success or failure of the last database operation.

Prototypes 

' Visual Basic
Public Readonly Property LastSQLCode As SQLCode

// C#
public SQLCode LastSQLCode {get;}

Remarks 

The SQL code is a standard Adaptive Server Anywhere code and is reset by any subsequent UltraLite database operation on this connection.

When a SQLException is thrown, the error code in the exception supercedes the error code returned by LastSQLCode property or the results from IsLastFetchOK property and IsLastCodeOK property.


Collection Contents Previous Next PDF