Sdílet prostřednictvím


ApplicationClass.GetServerInfo(String, String) Method

Definition

Returns the SQL Server version number of the SQL Server product installed on the target server.

public:
 virtual void GetServerInfo(System::String ^ bstrMachineName, [Runtime::InteropServices::Out] System::String ^ % serverVersion) = Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSApplication130::GetServerInfo;
public:
 virtual void GetServerInfo(System::String ^ bstrMachineName, [Runtime::InteropServices::Out] System::String ^ % serverVersion) = Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSApplication150::GetServerInfo;
[System.Runtime.InteropServices.DispId(40)]
public virtual void GetServerInfo (string bstrMachineName, out string serverVersion);
[<System.Runtime.InteropServices.DispId(40)>]
abstract member GetServerInfo : string * string -> unit
override this.GetServerInfo : string * string -> unit
Public Overridable Sub GetServerInfo (bstrMachineName As String, ByRef serverVersion As String)

Parameters

bstrMachineName
String

The name of the server hardware to check for the SQL Server product version.

serverVersion
String

When this method returns, contains the version number of the SQL Server product. This parameter is passed uninitialized.

Implements

Attributes

Applies to