ReportingService2010.TestConnectForDataSourceDefinition Method (DataSourceDefinition, String, String, String)
Tests the connection for a data source. This method supports the direct testing of the data source.
Assembly: ReportService2010 (in ReportService2010.dll)
The data source definition that defines the connection to the data source.
The user name to use to test the connection.UserName is used with data sources that prompt for credentials.
The password to use to test the connection.Password is used with data sources that prompt for credentials.
A detailed error message. The message is returned when the connection fails. The data source provider provides the detailed message.
Return ValueType: System.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
Native Mode Required Permissions
SharePoint Mode Required Permissions
Needs the system property EnableLoadReportDefinition set to true
Permission to execute the report definition is required.