Application.SetPackageRoles(String, String, String, String) 메서드

정의

패키지에 대한 읽기 및 쓰기 권한을 가진 데이터베이스 역할을 설정합니다. 데이터베이스 역할은 SQL Server msdb 데이터베이스에 저장된 패키지에만 적용됩니다.

public:
 void SetPackageRoles(System::String ^ serverName, System::String ^ packagePath, System::String ^ readerRole, System::String ^ writerRole);
public void SetPackageRoles (string serverName, string packagePath, string readerRole, string writerRole);
member this.SetPackageRoles : string * string * string * string -> unit
Public Sub SetPackageRoles (serverName As String, packagePath As String, readerRole As String, writerRole As String)

매개 변수

serverName
String

패키지가 포함된 서버의 이름과 인스턴스를 지정합니다.

packagePath
String

패키지의 이름을 지정합니다.

readerRole
String

읽기 액세스 권한을 부여할 역할을 지정합니다.

writerRole
String

쓰기 액세스 권한을 부여할 역할을 지정합니다.

예제

다음 코드 예제에서는 변수가 특정 서버 이름, 패키지 경로 및 역할을 반영하도록 설정되었다고 가정하여 패키지 역할을 설정하는 방법을 보여 줍니다.

app.SetPackageRoles(serverName, packagePath, readerRole, writerRole);   
app.SetPackageRoles(serverName, packagePath, readerRole, writerRole)  

적용 대상