이 API는 SQL Server 2012 인프라를 지원하기 위한 것으로 코드에서 직접 사용할 수 없습니다.
Returns the database roles that have read access and write access to the package. Database roles apply only to packages stored in the SQL Server msdb database.
네임스페이스: Microsoft.SqlServer.Dts.Runtime.Wrapper
어셈블리: Microsoft.SqlServer.DTSRuntimeWrap(Microsoft.SqlServer.DTSRuntimeWrap.dll)
구문
‘선언
Sub GetPackageRoles ( _
bstrServerName As String, _
bstrPackagePath As String, _
<OutAttribute> ByRef pbstrReaderRole As String, _
<OutAttribute> ByRef pbstrWriterRole As String _
)
‘사용 방법
Dim instance As IDTSApplication100
Dim bstrServerName As String
Dim bstrPackagePath As String
Dim pbstrReaderRole As String
Dim pbstrWriterRole As String
instance.GetPackageRoles(bstrServerName, _
bstrPackagePath, pbstrReaderRole, _
pbstrWriterRole)
void GetPackageRoles(
string bstrServerName,
string bstrPackagePath,
out string pbstrReaderRole,
out string pbstrWriterRole
)
void GetPackageRoles(
[InAttribute] String^ bstrServerName,
[InAttribute] String^ bstrPackagePath,
[OutAttribute] String^% pbstrReaderRole,
[OutAttribute] String^% pbstrWriterRole
)
abstract GetPackageRoles :
bstrServerName:string *
bstrPackagePath:string *
pbstrReaderRole:string byref *
pbstrWriterRole:string byref -> unit
function GetPackageRoles(
bstrServerName : String,
bstrPackagePath : String,
pbstrReaderRole : String,
pbstrWriterRole : String
)
매개 변수
- bstrServerName
유형: System.String
Specifies the name and instance of the server that contains the package.
- bstrPackagePath
유형: System.String
Specifies the name and path of the package.
- pbstrReaderRole
유형: System.String%
When this method returns, contains the roles with read access. This parameter is passed uninitialized.
- pbstrWriterRole
유형: System.String%
When this method returns, contains the roles with write access. This parameter is passed uninitialized.