다음을 통해 공유


Application.SetPackageRoles Method

Sets the database roles that have read access and write access to the package. Database roles apply only to package stored in the SQL Servermsdb database.

네임스페이스: Microsoft.SqlServer.Dts.Runtime
어셈블리: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

구문

‘선언
Public Sub SetPackageRoles ( _
    serverName As String, _
    packagePath As String, _
    readerRole As String, _
    writerRole As String _
)
public void SetPackageRoles (
    string serverName,
    string packagePath,
    string readerRole,
    string writerRole
)
public:
void SetPackageRoles (
    String^ serverName, 
    String^ packagePath, 
    String^ readerRole, 
    String^ writerRole
)
public void SetPackageRoles (
    String serverName, 
    String packagePath, 
    String readerRole, 
    String writerRole
)
public function SetPackageRoles (
    serverName : String, 
    packagePath : String, 
    readerRole : String, 
    writerRole : String
)

매개 변수

  • serverName
    Specify the name and instance of the server that contains the package.
  • packagePath
    Specify the name of the package.
  • readerRole
    Specify a role to have read access.
  • writerRole
    Specify a role to have write access.

The following code example shows how to set package roles, assuming the variables have been set to reflect your specific server name, package path, and roles.

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

스레드 보안

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

Application Class
Application Members
Microsoft.SqlServer.Dts.Runtime Namespace