共用方式為


ApplicationClass.RemoveFromSQLServer 方法

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

Removes a package from the specified instance of SQL Server.

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

語法

'宣告
Public Overridable Sub RemoveFromSQLServer ( _
    bstrPackagePath As String, _
    bstrServerName As String, _
    bstrServerUserName As String, _
    bstrServerPassword As String _
)
'用途
Dim instance As ApplicationClass 
Dim bstrPackagePath As String 
Dim bstrServerName As String 
Dim bstrServerUserName As String 
Dim bstrServerPassword As String

instance.RemoveFromSQLServer(bstrPackagePath, _
    bstrServerName, bstrServerUserName, _
    bstrServerPassword)
public virtual void RemoveFromSQLServer(
    string bstrPackagePath,
    string bstrServerName,
    string bstrServerUserName,
    string bstrServerPassword
)
public:
virtual void RemoveFromSQLServer(
    [InAttribute] String^ bstrPackagePath, 
    [InAttribute] String^ bstrServerName, 
    [InAttribute] String^ bstrServerUserName, 
    [InAttribute] String^ bstrServerPassword
)
abstract RemoveFromSQLServer : 
        bstrPackagePath:string * 
        bstrServerName:string * 
        bstrServerUserName:string * 
        bstrServerPassword:string -> unit  
override RemoveFromSQLServer : 
        bstrPackagePath:string * 
        bstrServerName:string * 
        bstrServerUserName:string * 
        bstrServerPassword:string -> unit
public function RemoveFromSQLServer(
    bstrPackagePath : String, 
    bstrServerName : String, 
    bstrServerUserName : String, 
    bstrServerPassword : String
)

參數

  • bstrPackagePath
    型別:System.String
    The name of the package to remove.
  • bstrServerName
    型別:System.String
    The name of the instance of SQL Server.
  • bstrServerUserName
    型別:System.String
    The user name to use when authenticating against the server.
  • bstrServerPassword
    型別:System.String
    The password associated with the bstrServerUserName account.

實作

IDTSApplication100.RemoveFromSQLServer(String, String, String, String)

請參閱

參考

ApplicationClass 類別

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