IDTSApplication100.GetServerInfo 方法

此 API 支持 SQL Server 2012 基础结构,但不能通过代码直接使用。

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

命名空间:  Microsoft.SqlServer.Dts.Runtime.Wrapper
程序集:  Microsoft.SqlServer.DTSRuntimeWrap(在 Microsoft.SqlServer.DTSRuntimeWrap.dll 中)

语法

声明
Sub GetServerInfo ( _
    bstrMachineName As String, _
    <OutAttribute> ByRef serverVersion As String _
)
用法
Dim instance As IDTSApplication100 
Dim bstrMachineName As String 
Dim serverVersion As String

instance.GetServerInfo(bstrMachineName, _
    serverVersion)
void GetServerInfo(
    string bstrMachineName,
    out string serverVersion
)
void GetServerInfo(
    [InAttribute] String^ bstrMachineName, 
    [OutAttribute] String^% serverVersion
)
abstract GetServerInfo : 
        bstrMachineName:string * 
        serverVersion:string byref -> unit
function GetServerInfo(
    bstrMachineName : String, 
    serverVersion : String
)

参数

  • bstrMachineName
    类型:System.String
    The name of the server hardware to check for the SQL Server product version.
  • serverVersion
    类型:System.String%
    When this method returns, contains the version number of the SQL Server product. This parameter is passed uninitialized.

请参阅

参考

IDTSApplication100 接口

Microsoft.SqlServer.Dts.Runtime.Wrapper 命名空间