IDTSApplication100.SetPackageRoles(String, String, String, String) Method

Definition

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.

public:
 void SetPackageRoles(System::String ^ bstrServerName, System::String ^ bstrPackagePath, System::String ^ bstrReaderRole, System::String ^ bstrWriterRole);
[System.Runtime.InteropServices.DispId(63)]
public void SetPackageRoles (string bstrServerName, string bstrPackagePath, string bstrReaderRole, string bstrWriterRole);
[<System.Runtime.InteropServices.DispId(63)>]
abstract member SetPackageRoles : string * string * string * string -> unit
Public Sub SetPackageRoles (bstrServerName As String, bstrPackagePath As String, bstrReaderRole As String, bstrWriterRole As String)

Parameters

bstrServerName
String

Specify the name and instance of the server that contains the package.

bstrPackagePath
String

Specify the name of the package.

bstrReaderRole
String

Specify a role to have read access.

bstrWriterRole
String

Specify a role to have write access.

Attributes

Applies to