Condividi tramite


Metodo ExecuteSql.GetServerVersion (Object)

Retrieves the server version for the server with the given connection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server.

Spazio dei nomi  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Sintassi

'Dichiarazione
Public Shared Function GetServerVersion ( _
    con As Object _
) As ServerVersion
'Utilizzo
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

Parametri

Valore restituito

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

Vedere anche

Riferimento

ExecuteSql Classe

Overload GetServerVersion

Spazio dei nomi Microsoft.SqlServer.Management.Sdk.Sfc