There are two types of Shared Data Source in ActiveReports.
The local shared data sources are embedded in the application resources or shared through a file system. Local shared data sources can be used in Page or RDL reports. See Create and Edit a Shared Data Source for information on how to create a shared data source or modify an existing one.
Server shared data sources allow the administrator to create and control access to data sources that are hosted on an instance of ActiveReports Server. You can reference server shared data sources using the DataSourceReference element in Page or RDL reports that are stored and run in ActiveReports Server.
It is beneficial to use server shared data sources when working with multiple reports referencing the same data. For example, if there is a change in connection properties such as, server name, database name, etc., in case of local shared data sources, you need to open each report and update the connection properties individually. Whereas for reports using the server shared data source, the change is only required in one place.
You can access the Shared Data Source option from the stand-alone designer or the Visual Studio designer. In order to access the server shared data sources, make sure you are connected to ActiveReports Server. See Connecting to ActiveReports Server for further information.
In the Stand-Alone Designer
Access the Server Shared Data Sources dialog from the Server menu of the stand-alone designer.
In the Visual Studio Designer
Access the Server Shared Data Sources dialog from the Report menu (Report > Server > Edit Shared Data Sources) of the Visual Studio designer.
The dialog appears when you click the Shared Data Sources option from the Server menu of the stand-alone designer or Report menu of the Visual Studio designer. Using the options available in this dialog, you can add, edit or refresh a server shared data source.
The Server Shared Data Sources dialog consists of the following elements:
Elements | Description |
---|---|
Add | Opens the Server Shared Data Source dialog, where you can create a new data source using the specified properties for each data type. |
Edit | Allows you to modify the data source properties of the selected data source. |
Refresh | Allows you to refresh the list of data sources on ActiveReports Server. |
This dialog appears when you click the Add button on the Server Shared Data Sources dialog. Using the options available in this dialog, you can modify connection properties for each data source type.
Following are the properties corresponding to each data type.
Data Source Type | Property Names | Property Description |
---|---|---|
Microsoft Sql Client Provider | Name | Enter a name for the data source. This name must be unique within the server. |
Description |
Allows you to provide a description related to the data source connection. |
|
Server Name | Enter a SQL server name or URL. | |
Database Name | Enter the name of the database you want to connect. | |
Use Windows Authentication | Select this option when you know that any users with a valid Windows account are cleared for access to the data, and you do not want to prompt them for a user name and password. | |
Use Server Authentication | Select this option to enter a user name and password for server authentication. | |
User Name | Enter the username to access the database. | |
Password | Enter the password to log in to the database. | |
Connection String |
In the Connection String tab, enter a connection string for the data source. The Connection String box displays the connection information based on your server and database connection.
Sample Microsoft Sql Connection String
|
|
Test connection | Click to verify that the data source connection works using the specified credentials. If the test fails, verify the credentials and server availability. | |
Oracle Client Provider | Name | Enter a name for the data source. This name must be unique within the server. |
Description | Allows you to provide a description related to the data source connection. | |
Server Name | Specify the name of the Oracle server. | |
User Name | Enter the username to access the database. | |
Password | Enter the password to log in to the database. | |
Connection String |
In the Connection String tab, enter a connection string for the data source. The Connection String box displays the connection information based on your server and database connection.
Sample Oracle Connection String
|
|
Test connection | Click to verify that the data source connection works using the specified credentials. If the connection cannot be made, you need to verify your credentials and the server availability. | |
Microsoft OleDb Provider Microsoft Odbc Provider Xml Provider |
Name | Enter a name for the data source. This name must be unique within the server. |
Description | Allows you to provide a description related to the data source connection. | |
Connection String |
Enter a connection string for the data source. The Connection String box displays the connection information based on your server and database connection. Sample OleDb Connection String
Sample Odbc Connection String
Sample Xml Connection String
|
|
Test connection | Click to verify that the data source connection works using the specified credentials. If the connection cannot be made, you need to verify your credentials and the server availability. |
ActiveReports allows ActiveReports Server administrator to work with server shared data sources that are hosted on an instance of ActiveReports Server. The following section explains how the administrator can add or edit server shared data sources using the Server Shared Data Source dialog.