Lesson 2: Specifying Connection Information (Reporting Services)
After you add a report to the Tutorial project, you need to define a data source, which is a set of connection information the report uses to access data from either a relational database, multidimensional database, or other resource.
In this lesson, you will use the AdventureWorks2008R2 sample database as your data source. This tutorial assumes that this database is located in a default instance of SQL Server Database Engine that is installed on your local computer.
To set up a connection
In the Report Data pane, click New and then click Data Source.
If the Report Data pane is not visible, from the View menu, click Report Data.
In Name, type AdventureWorks2008R2.
Make sure Embedded connection is selected.
In Type, select Microsoft SQL Server.
In Connection string, type the following:
Data source=localhost; initial catalog=AdventureWorks2008R2
This connection string assumes that Business Intelligence Development Studio, the report server, and the AdventureWorks2008R2 database are all installed on the local computer and that you have permission to log on to the AdventureWorks2008R2 database.
If you are using SQL Server Express with Advanced Services or a named instance, the connection string must include instance information:
Data source=localhost\SQLEXPRESS; initial catalog=AdventureWorks2008R2
For more information about connection strings, see Data Connections, Data Sources, and Connection Strings (SSRS) and Data Source Properties Dialog Box, General.
Click OK. A data source called AdventureWorks2008R2 is added to the Report Data pane.
You have successfully defined a connection to the AdventureWorks2008R2 sample database. Next, you will create the report. See Lesson 3: Defining a Dataset for the Table Report (Reporting Services).
At this point you're ready to complete tutorials on creating other kinds of reports, too. See: