Share via


ReportExecutionService.SetExecutionCredentials Method

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Sets the credentials associated with the current report execution.

Syntax

'Declaration
Public Function SetExecutionCredentials ( _
    Credentials As DataSourceCredentials() _
) As ExecutionInfo
public ExecutionInfo SetExecutionCredentials (
    DataSourceCredentials[] Credentials
)
public:
ExecutionInfo^ SetExecutionCredentials (
    array<DataSourceCredentials^>^ Credentials
)
public ExecutionInfo SetExecutionCredentials (
    DataSourceCredentials[] Credentials
)
public function SetExecutionCredentials (
    Credentials : DataSourceCredentials[]
) : ExecutionInfo

Parameters

Return Value

An ExecutionInfo object containing the new execution.

Remarks

If a snapshot exists when the credentials are set and AllowQueryExecution is false, the snapshot will be cleared, and any parameters will be reset to their default values.

If there are multiple data sources that prompt for the same report, you need to specify all of the credentials at the same time. If one set of credentials must be changed, you must supply all of the credentials again.

Credentials are only persisted for the lifetime of the execution, after which they must be specified again.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

See Also

Reference

ReportExecutionService Class
ReportExecutionService Members
Microsoft.WSSUX.ReportingServicesWebService.RSExecutionService2005 Namespace