다음을 통해 공유


PingSqlServerVersion 메서드 (String, String, String)

Get the version number of the specified instance of SQL Server using the specified login and password to gain access.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo.dll의 Microsoft.SqlServer.Smo

구문

‘선언
Public Function PingSqlServerVersion ( _
    serverName As String, _
    login As String, _
    password As String _
) As ServerVersion
‘사용 방법
Dim instance As Server
Dim serverName As String
Dim login As String
Dim password As String
Dim returnValue As ServerVersion

returnValue = instance.PingSqlServerVersion(serverName, _
    login, password)
public ServerVersion PingSqlServerVersion(
    string serverName,
    string login,
    string password
)
public:
ServerVersion^ PingSqlServerVersion(
    String^ serverName, 
    String^ login, 
    String^ password
)
member PingSqlServerVersion : 
        serverName:string * 
        login:string * 
        password:string -> ServerVersion 
public function PingSqlServerVersion(
    serverName : String, 
    login : String, 
    password : String
) : ServerVersion

매개 변수

반환 값

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