Export (0) Print
Expand All

Application.GetDtsServerRoles Method

Returns an array of Strings that lists the roles available for a folder.

Namespace:  Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)

public string[] GetDtsServerRoles(
	string sFolderPath,
	string sServerName
)

Parameters

sFolderPath
Type: System.String
The folder whose roles you are interested in.
sServerName
Type: System.String
The name of the instance that is running the Integration Services service.

Return Value

Type: System.String[]
An array of Strings, each string containing a role name.

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

string[] availableRoles = app.GetDtsServerRoles(folderPath, myServerName); 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft