LastSQLErrorCode property: Query class
Description
This property returns the last SQL error code returned by the database as a number. The session object contains the error text and any other errors encountered while executing the query.
PeopleSoft recommends checking this value after using RunToRowset or RunToFile.
This property is read-only.