IDTSApplication100.GetServerInfo(String, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回安装在目标服务器上的 SQL Server 产品的 SQL Server 版本号。
public:
void GetServerInfo(System::String ^ bstrMachineName, [Runtime::InteropServices::Out] System::String ^ % serverVersion);
[System.Runtime.InteropServices.DispId(40)]
public void GetServerInfo(string bstrMachineName, out string serverVersion);
[<System.Runtime.InteropServices.DispId(40)>]
abstract member GetServerInfo : string * string -> unit
Public Sub GetServerInfo (bstrMachineName As String, ByRef serverVersion As String)
参数
- bstrMachineName
- String
用服务器硬件名称来检查 SQL Server 产品版本。
- serverVersion
- String
当该方法返回时,包含SQL Server产品的版本号。 此参数未初始化传递。
- 属性