Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Application.GetPackageRoles Method

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.

Namespace:  Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)
member GetPackageRoles : 
        serverName:string * 
        packagePath:string * 
        readerRole:string byref * 
        writerRole:string byref -> unit

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
Returns the roles with read access.
writerRole
Type: System.String
Returns the roles with write access.

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

No code example is currently available or this language may not be supported.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.