GetServerVersion-Methode (Object)
Retrieves the server version for the server with the given connection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur.
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
Parameter
- con
Typ: System. . :: . .Object
The specified connection.
Rückgabewert
Typ: Microsoft.SqlServer.Management.Common. . :: . .ServerVersion
The server version for the server with the given connection.