IDTSApplication100.ExistsOnDtsServer 方法
此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。
Returns a Boolean that indicates whether the specified package already exists on the Integration Services service.
命名空間: Microsoft.SqlServer.Dts.Runtime.Wrapper
組件: Microsoft.SqlServer.DTSRuntimeWrap (在 Microsoft.SqlServer.DTSRuntimeWrap.dll 中)
語法
'宣告
Function ExistsOnDtsServer ( _
bstrPackagePath As String, _
bstrServerName As String _
) As Boolean
'用途
Dim instance As IDTSApplication100
Dim bstrPackagePath As String
Dim bstrServerName As String
Dim returnValue As Boolean
returnValue = instance.ExistsOnDtsServer(bstrPackagePath, _
bstrServerName)
bool ExistsOnDtsServer(
string bstrPackagePath,
string bstrServerName
)
bool ExistsOnDtsServer(
[InAttribute] String^ bstrPackagePath,
[InAttribute] String^ bstrServerName
)
abstract ExistsOnDtsServer :
bstrPackagePath:string *
bstrServerName:string -> bool
function ExistsOnDtsServer(
bstrPackagePath : String,
bstrServerName : String
) : boolean
參數
- bstrPackagePath
型別:System.String
The fully qualified path of the package.
- bstrServerName
型別:System.String
The name of the server to search for the package.
傳回值
型別:System.Boolean
true if the package specified by bstrPackagePath exists on the server named by bstrServerName; otherwise, false.