Application.RemoveFromSqlServer(String, String, String, String) メソッド

定義

指定した SQL Server のインスタンスからパッケージを削除します。

public:
 void RemoveFromSqlServer(System::String ^ packagePath, System::String ^ serverName, System::String ^ serverUserName, System::String ^ serverPassword);
public void RemoveFromSqlServer (string packagePath, string serverName, string serverUserName, string serverPassword);
member this.RemoveFromSqlServer : string * string * string * string -> unit
Public Sub RemoveFromSqlServer (packagePath As String, serverName As String, serverUserName As String, serverPassword As String)

パラメーター

packagePath
String

削除するパッケージの名前です。

serverName
String

SQL Server のインスタンスの名前です。

serverUserName
String

サーバーに対する認証を行うときに使用するユーザー名です。

serverPassword
String

serverUserName アカウントに関連付けられているパスワードです。

次のコード例では、以前保存した myNewName という名前のパッケージを削除します。

static void Main(string[] args)  
{  
    Application app = new Application();  
    // The package was previously saved using this method call.  
    //app.SaveToSqlServerAs(p1, null, "myNewName", "yourserver", null, null);  

    // Remove the previously saved package.  
    app.RemoveFromSqlServer("myNewName", "yourserver", null, null);  
}  
Shared  Sub Main(ByVal args() As String)  
    Dim app As Application =  New Application()   
    ' The package was previously saved using this method call.  
    'app.SaveToSqlServerAs(p1, null, "myNewName", "yourserver", null, null);  

    ' Remove the previously saved package.  
    app.RemoveFromSqlServer("myNewName", "yourserver", Nothing, Nothing)  
End Sub  

適用対象