Dataset management in Report Server
You can create and store dataset on a Report Server that can be used by multiple reports. When you create or upload a dataset to Report Server, it is considered as shared dataset and it always placed in the Datasets page. A shared dataset must be based on a shared data source. Datasets are accessible to the user depending on the user’s permission. This section explains about dataset management in Report Server. Allows you to create, edit, update, sharing permissions and delete data sets in the Bold Reports® On-Premise. The following image shows the list of options available to manage dataset.

Create dataset
Dataset can be created only if the user has Create All Datasets permission.
Steps to create a dataset
We can create dataset by following ways.
- Add dataset from
+icon. - Add dataset from Dataset listing page.
Add Dataset from Menu
- Click on the
+button in the left side menu and chooseCreate Datasetto add a dataset.
Add dataset from Dataset listing page
-
Click
Datasetfrom left side panel of the Report Server and clickCreate my first Datasetbutton there is no dataset in listing page or else clickCreate Datasetbutton.
-
To create dataset, we have use datasource either newly created or else existing datasource.

-
Refer this link for creating dataset from new datasource
Create dataset from existing datasource
To create a dataset using the existing datasource, follow the below steps.
-
Click on
use existing datasourceto create new dataset. -
Select the datasource from the list and click on
Connect. -
Enter the name and description of the dataset. Then click on
Proceed to Query Designer.
Read Write Deletepermission for thatSpecific Datasetwill be added for the user who created the dataset.
Add or upload dataset
-
Click on the
+button in the left side menu and chooseUpload Datasetand selectDatasetto add a dataset.
-
Enter the name and description of the dataset.
-
Click
Browseand select the.rsdfile to upload. -
Select the
DataSource. In the select data source dialog, you can either select a data source that is already available in the Report Server or create a new data source at that time itself.
-
Click on the
Saveoption, the dataset will be uploaded into the Bold Reports® On-Premise and displayed in the list as shown below,
Read Write Deletepermission for thatSpecific Datasetwill be added for the user who created the dataset.
Create report with dataset
Click the Actions button in the dataset grid context menu and select Create Reports to create a new report with a dataset.

Create report part with dataset
To create a new report part using dataset, click the Actions button in the dataset grid context menu and select Create Report Part.

Download Dataset
Click the Actions menu button in the dataset grid’s context menu and select Download Dataset. This will download the dataset as a .rsd file.

Edit dataset
Click the Actions button in the dataset grid context menu and select Edit Dataset to edit a dataset.

Change data source
This section explains on how to change data source and add new dataset.
Steps to change data source
-
Click the
Actionsbutton in the dataset grid context menu and selectChange data sourceto change datasource.
-
Enter the name of the dataset.
-
Check the Overwrite button to overwrite the existing dataset.

-
Select the datasource and click on
savebutton to add a new dataset with the selected datasource.
Version history
Versions and file logs for each dataset are maintained in the Report Server for every changes in the Dataset. Click the Actions button in the grid context menu and click Version History option.

Versions
For each change in the .rsd file, a new version will be created. All versions can be individually opened.

File logs
For each change in the dataset including changes in the event, user and date.

Info
-
Click the Actions menu button in the Dataset grid context menu and select
Info.
-
The Dataset info action provides information about the Dataset Id, Created by, Created on, Last modified by, Last modified on, and Linked Reports.

-
Click
Showto view the linked reports.

Edit dataset as XML
This XML editor provides a user-friendly interface for you to make necessary modifications to the dataset in the Report Server. This means you can make necessary changes to the dataset without downloading it and using a separate text editor.
- Click the
Actionsbutton in the dataset grid context menu and selectEdit As XMLto edit a dataset.

- The respective dataset will be opened in a new tab as XML, allowing you to make modifications, and you can save the edited dataset by publishing it from the XML editor.

Update dataset
-
Click the
Actionsbutton in the dataset grid context menu and selectUpdate Datasetto update the Dataset.
-
Enter the name and description of the dataset.

-
Click on the
Updateoption.
Delete dataset
Datasets can also be deleted from the Report Server when they are no longer required.
Click the Actions button in the dataset grid context menu and select Delete to delete the Dataset.

Dataset cannot be deleted if any report uses it.
REST API Reference
The following table illustrates the list of available APIs related to datasets in Bold Reports® On-Premise.
| Action | HTTP Method | Endpoint | Description |
|---|---|---|---|
| AddDataset | POST | /api/site/{tenant-name}/v1.0/reports/datasets | Adds a new dataset to the server. Dataset details must be passed as input. |
| UpdateDataset | PUT | /api/site/{tenant-name}/v1.0/reports/datasets | Updates the dataset in the server. Updated dataset details must be passed as input. |
| GetDataSets | GET | /api/site/{tenant-name}/v1.0/items | Returns the list of datasets for current user. ItemType should be Dataset. |
| GetDataSetLocation | GET | /api/site/{tenant-name}/v1.0/items/{itemId}/location | Returns the item location of the specified dataset. Specific DataSet ID should be passed in path parameter. |
| IsDataSetNameExists | POST | /api/site/{tenant-name}/v1.0/items/is-name-exists | Returns an item existence whether the given dataset name already exists or not in server. Dataset name and ItemType as DataSet should be passed in request body. |
| GetDataSetDetail | GET | /api/site/{tenant-name}/v1.0/items/{id} | Returns the specified dataset details from the server. DataSet item ID should be passed in path parameter. |
| DeleteDataSet | DELETE | /api/site/{tenant-name}/v1.0/items/{id} | Deletes the specified dataset from the server. DataSet item ID should be passed in path parameter. |