언어

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)  

적용 대상