共用方式為


ApplicationClass.ExistsOnSQLServer 方法

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

Indicates whether the specified package exists on the instance of SQL Server.

命名空間:  Microsoft.SqlServer.Dts.Runtime.Wrapper
組件:  Microsoft.SqlServer.DTSRuntimeWrap (在 Microsoft.SqlServer.DTSRuntimeWrap.dll 中)

語法

'宣告
Public Overridable Function ExistsOnSQLServer ( _
    bstrPackagePath As String, _
    bstrServerName As String, _
    bstrServerUserName As String, _
    bstrServerPassword As String _
) As Boolean
'用途
Dim instance As ApplicationClass 
Dim bstrPackagePath As String 
Dim bstrServerName As String 
Dim bstrServerUserName As String 
Dim bstrServerPassword As String 
Dim returnValue As Boolean 

returnValue = instance.ExistsOnSQLServer(bstrPackagePath, _
    bstrServerName, bstrServerUserName, _
    bstrServerPassword)
public virtual bool ExistsOnSQLServer(
    string bstrPackagePath,
    string bstrServerName,
    string bstrServerUserName,
    string bstrServerPassword
)
public:
virtual bool ExistsOnSQLServer(
    [InAttribute] String^ bstrPackagePath, 
    [InAttribute] String^ bstrServerName, 
    [InAttribute] String^ bstrServerUserName, 
    [InAttribute] String^ bstrServerPassword
)
abstract ExistsOnSQLServer : 
        bstrPackagePath:string * 
        bstrServerName:string * 
        bstrServerUserName:string * 
        bstrServerPassword:string -> bool  
override ExistsOnSQLServer : 
        bstrPackagePath:string * 
        bstrServerName:string * 
        bstrServerUserName:string * 
        bstrServerPassword:string -> bool
public function ExistsOnSQLServer(
    bstrPackagePath : String, 
    bstrServerName : String, 
    bstrServerUserName : String, 
    bstrServerPassword : String
) : boolean

參數

  • bstrPackagePath
    型別:System.String
    The package you are looking for.
  • bstrServerName
    型別:System.String
    The name of the instance of SQL Server to search for the package.
  • bstrServerUserName
    型別:System.String
    The user name to authenticate against the instance of SQL Server.
  • bstrServerPassword
    型別:System.String
    The password for the specified bstrServerUserName.

傳回值

型別:System.Boolean
true if the package exists on the specified instance of SQL Server. false if the package does not exist

實作

IDTSApplication100.ExistsOnSQLServer(String, String, String, String)

請參閱

參考

ApplicationClass 類別

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