Share via


ExecuteSql.GetServerVersion Method

Do not reference this member directly in your code. It supports the SQL Server infrastructure.

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntax

'Declaration
Public Function GetServerVersion As ServerVersion
'Usage
Dim instance As ExecuteSql
Dim returnValue As ServerVersion

returnValue = instance.GetServerVersion()
public ServerVersion GetServerVersion()
public:
ServerVersion^ GetServerVersion()
member GetServerVersion : unit -> ServerVersion 
public function GetServerVersion() : ServerVersion

Return Value

Type: Microsoft.SqlServer.Management.Common.ServerVersion
The server version for the server with the given connection.