NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

SQLError.State

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;

Property Value

The error state, which identifies the source from which the error was issued (if the error can be issued from more than one place).

Example [Visual Basic]

The following example returns the error state.

[Visual Basic]

Function GetErrorState(sqlErr As SQLError) As Byte
   GetErrorState = sqlErr.State
End Function

See Also

SQLError Class | SQLError Members | System.Data.SQL Namespace | Number | Source | Class | Server | Message | Procedure | LineNumber