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!

SQLConnection.ServerVersion

Gets a string containing the version of the connected SQL Server.

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

Property Value

The version of SQL Server currently connected.

Exceptions

Exception Type Condition
ClosedConError The connection is closed.

Example

The following example shows how to create a connection and displays some of its read-only properties.

See Also

SQLConnection Class | SQLConnection Members | System.Data.SQL Namespace | Version