Gets the error state number returned from the SQL Server adapter.
[Visual Basic] Public ReadOnly Property State As Byte [C#] public byte State {get;} [C++] public: __property unsigned char get_State(); [JScript] public function get State() : Byte;
The error state, which identifies the source from which the error was issued (if the error can be issued from more than one place).
This is a wrapper for the State property of the first SQLError in the Errors property.
SQLException Class | SQLException Members | System.Data.SQL Namespace | Number | Class | Source | Server | Message | Procedure | LineNumber