DB2®Error Properties
The properties of the DB2Error class are listed here. For a complete list of DB2Error class members, see the DB2Error Members topic.
Public Properties
Property | Description |
---|---|
![]() |
Gets a short description of the error. |
![]() |
Gets the error information. |
![]() |
Gets an integer value indicating the number of the command in the series of chained commands that caused the error. This property is valid whenever multiple SQL statements are executed as part of a single operation. For example, this property is valid when chaining is active, during a bulk copy operation, and on Update operations by a DB2DataAdapter. |
![]() |
Gets the name of the driver that generated the error. The value is currently IBM®.Data.DB2. |
![]() |
Gets the five-character error code that follows the ANSI SQL standard for the database. |