IDTSApplication100.SetPackageRoles(String, String, String, String) 方法

定義

設定具有封裝讀取權限和寫入權限的資料庫角色。 資料庫角色僅適用于儲存在 SQL Server msdb 資料庫中的封裝。

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)

參數

bstrServerName
String

指定包含封裝的伺服器名稱和執行個體。

bstrPackagePath
String

指定封裝的名稱。

bstrReaderRole
String

指定角色具有讀取存取權。

bstrWriterRole
String

指定角色具有寫入存取權。

屬性

適用於