Define the data source
- Last UpdatedApr 24, 2025
- 2 minute read
Once you have created an empty report for your project, you need to define the data source for the query.
To define the data source
-
In Microsoft Visual Studio, navigate to the Report Data pane > Data Sources.
-
Right-click on Data Sources and select Add Data Source.
The Data Source Properties dialog box appears.

-
Select Embedded connection.
-
Select Build.
The Connection Properties dialog box appears.

-
In the Connection Properties dialog box:
-
In the Server name field, select the server you want to use.
-
Select Select or enter a database name and enter or choose the database you want to connect to.
-
Select OK.
-
-
The Connection Properties dialog box closes and the Data Source Properties dialog box appears with the Connection string field populated.

-
Select OK.