ExecuteSql.GetServerVersion Method (Object)
Retrieves the server version for the server with the given connection. 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 Shared Function GetServerVersion ( _
con As Object _
) As ServerVersion
'Usage
Dim con As Object
Dim returnValue As ServerVersion
returnValue = ExecuteSql.GetServerVersion(con)
public static ServerVersion GetServerVersion(
Object con
)
public:
static ServerVersion^ GetServerVersion(
Object^ con
)
static member GetServerVersion :
con:Object -> ServerVersion
public static function GetServerVersion(
con : Object
) : ServerVersion
Parameters
- con
Type: System.Object
The specified connection.
Return Value
Type: Microsoft.SqlServer.Management.Common.ServerVersion
The server version for the server with the given connection.