Application.SetPackageRoles Method
SQL Server 2012
Sets the database roles that have read access and write access to the package. Database roles apply only to package stored in the SQL Server msdb database.
Namespace: Microsoft.SqlServer.Dts.Runtime
Assembly: Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)
public void SetPackageRoles( string serverName, string packagePath, string readerRole, string writerRole )
Parameters
- serverName
- Type: System.String
Specify the name and instance of the server that contains the package.
- packagePath
- Type: System.String
Specify the name of the package.
- readerRole
- Type: System.String
Specify a role to have read access.
- writerRole
- Type: System.String
Specify a role to have write access.
