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  

적용 대상