Compartir a través de


PingSqlServerVersion Método (String)

Gets the version number of the instance of SQL Server.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public Function PingSqlServerVersion ( _
    serverName As String _
) As ServerVersion
'Uso
Dim instance As Server
Dim serverName As String
Dim returnValue As ServerVersion

returnValue = instance.PingSqlServerVersion(serverName)
public ServerVersion PingSqlServerVersion(
    string serverName
)
public:
ServerVersion^ PingSqlServerVersion(
    String^ serverName
)
member PingSqlServerVersion : 
        serverName:string -> ServerVersion 
public function PingSqlServerVersion(
    serverName : String
) : ServerVersion

Parámetros

Valor devuelto

Tipo: Microsoft.SqlServer.Management.Common. . :: . .ServerVersion
A ServerVersion object value that specifies the version of the instance of SQL Server.