다음을 통해 공유


Server.PingSqlServerVersion Method

Definition

Overloads

PingSqlServerVersion(String)

will connect to the specified serve, retrieve the version string, and disconnect before return to the caller This allows caller to ping the SQLServer version Expensive because we need to make a connection to get the info, call only when necessary

PingSqlServerVersion(String, String, String)

will connect to the specified serve, retrieve the version string, and disconnect before return to the caller This allows caller to ping the SQLServer version Expensive because we need to make a connection to get the info, call only when necessary

PingSqlServerVersion(String)

will connect to the specified serve, retrieve the version string, and disconnect before return to the caller This allows caller to ping the SQLServer version Expensive because we need to make a connection to get the info, call only when necessary

public Microsoft.SqlServer.Management.Common.ServerVersion PingSqlServerVersion (string serverName);
member this.PingSqlServerVersion : string -> Microsoft.SqlServer.Management.Common.ServerVersion
Public Function PingSqlServerVersion (serverName As String) As ServerVersion

Parameters

serverName
String

Returns

Applies to

PingSqlServerVersion(String, String, String)

will connect to the specified serve, retrieve the version string, and disconnect before return to the caller This allows caller to ping the SQLServer version Expensive because we need to make a connection to get the info, call only when necessary

public Microsoft.SqlServer.Management.Common.ServerVersion PingSqlServerVersion (string serverName, string login, string password);
member this.PingSqlServerVersion : string * string * string -> Microsoft.SqlServer.Management.Common.ServerVersion
Public Function PingSqlServerVersion (serverName As String, login As String, password As String) As ServerVersion

Parameters

serverName
String
login
String
password
String

Returns

Applies to