Application.SetPackageRoles(String, String, String, String) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
패키지에 읽기 및 쓰기 권한을 가진 데이터베이스 역할을 설정합니다. 데이터베이스 역할은 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)