Lesson 2: Modifying the Report Data Source Properties
In this lesson, you start by choosing a tool and selecting a report that will be delivered to recipients. Although you can use either Report Manager or Management Studio to define a data-driven subscription, this tutorial assumes you are using Management Studio.
The data-driven subscription that you will define will distribute the Adventure Works sample report, Employee Sales Summary. In the steps that follow, you will modify the data source connection information used by the report to get data. Only reports that use stored credentials to access a report data source can be distributed through a data-driven subscription. Stored credentials are necessary for unattended report processing.
To modify the data source properties
Click Start, point to Programs, point to Microsoft SQL Server 2005, and click SQL Server Management Studio.
Connect to a report server. From the File menu, choose Connect Object Explorer. In the Connect to Server dialog box, specifying the following:
- In Server type, select Reporting Services.
- In Server name, select the report server instance you want to connect to. If you have multiple instances installed, click Browse for more to view a complete list of all of the report server instances that are currently installed on your computer.
- Click Connect.
In Object Explorer, expand Home, and then navigate to the folder containing the Adventure Works sample reports. By default, the folder name is AdventureWorks Sample Reports. For more information about the sample reports, see AdventureWorks Report Samples.
Expand the Employee Sales Summary sample report, and then expand Data Sources.
Right-click AdventureWorks, and then select Properties.
Select A custom data source.
For Connection Type, select Microsoft SQL Server.
Type the following connection string:
data source=localhost; initial catalog=AdventureWorks
Click Credentials stored securely in the report server.
Type your user name (use the format domain\user) and password. If you do not have permission to access the AdventureWorks database, specify a login that does.
Click Use as windows credentials when connecting to the data source, and then click OK. If you are not using a domain account (for example, if you are using a SQL Server login), do not click this checkbox.
View the report to verify that the report runs with the credentials you specified. To view the report, right-click the report and select View Report. Note that once the report is open, you must select an Employee name and then click the View Report button to view the report.
You successfully configured the report to get data using stored credentials. Next, you specify the subscription using the Data-Driven Subscription wizard. See Lesson 3: Defining a Data-Driven Subscription.