Export (0) Print
Expand All
Expand Minimize

ReportingService2010.TestConnectForDataSourceDefinition Method

Tests the connection for a data source. This method supports the direct testing of the data source.

Namespace:  ReportService2010
Assembly:  ReportService2010 (in ReportService2010.dll)

public function TestConnectForDataSourceDefinition(
	DataSourceDefinition : DataSourceDefinition, 
	UserName : String, 
	Password : String, 
	ConnectError : String
) : boolean

Parameters

DataSourceDefinition
Type: ReportService2010.DataSourceDefinition
The data source definition that defines the connection to the data source.
UserName
Type: String
The user name to use to test the connection. UserName is used with data sources that prompt for credentials.
Password
Type: String
The password to use to test the connection. Password is used with data sources that prompt for credentials.
ConnectError
Type: String
A detailed error message. The message is returned when the connection fails. The data source provider provides the detailed message.

Return Value

Type: Boolean
A Boolean the indicates whether the connection completed successfully.A string that contains a detailed error message. The string is returned as the out parameter, ConnectError.

The table below shows header and permissions information on this operation.

SOAP Header Usage

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Native Mode Required Permissions

ExecuteReportDefinition (System)

SharePoint Mode Required Permissions

Needs the system property EnableLoadReportDefinition set to true

Permission to execute the report definition is required.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft