SqlState Property
The Adaptive Server five-character SQL state following the ANSI SQL standard. If the error can be issued from more than one place, the five-character error code identifies the source of the error.
ToString Method
Identifies the complete text of the error message.