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.