Application.RemoveFromSqlServer(String, String, String, String) Methode

Definition

Entfernt ein Paket aus der angegebenen SQL Server-Instanz.

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)

Parameter

packagePath
String

Der Name des zu entfernenden Pakets.

serverName
String

Der Name der SQL Server-Instanz.

serverUserName
String

Der beim Authentifizieren auf dem Server zu verwendende Benutzername.

serverPassword
String

Das dem serverUserName-Konto zugeordnete Kennwort.

Beispiele

Im folgenden Codebeispiel wird ein Zuvor gespeichertes Paket entfernt 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  

Gilt für: