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.Server

Gets the name of the database server the error occurred on.

[Visual Basic]
Public ReadOnly Property Server As String
[C#]
public string Server {get;}
[C++]
public: __property String* get_Server();
[JScript]
public function get Server() : String;

Property Value

The name of the database server.

Example [Visual Basic]

The following example returns the name of the database server.

[Visual Basic]

Function GetErrorServer(sqlErr As SQLError) As String
   GetErrorServer = sqlErr.Server
End Function

See Also

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