Dela via


Data Sources and Connection Methods

You can use these methods to set and manage data source connections and credentials.

Method

Action

CreateDataSource

Creates a new data source in the report server database or SharePoint library.

DisableDataSource

Disables a data source that is enabled.

EnableDataSource

Enables a data source that is disabled.

GetDataSourceContents

Returns the contents of a data source.

GetItemDataSourcePrompts

Gets the data source prompts for a specified item.

GetItemDataSources

Returns the data sources for an item in the catalog.

ListDependentItems

Returns a list of catalog items that reference a specified catalog item.

ListSubscriptionsUsingDataSource

Returns a list of subscriptions that are associated with a given data source.

SetDataSourceContents

Sets the connection properties that are associated with a data source.

SetItemDataSources

Sets the data sources for an item in a report server database or SharePoint library.

TestConnectForDataSourceDefinition

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

TestConnectForItemDataSource

Tests the connection for a data source. This method supports the testing of published data sources that are used by reports or models and shared data sources.