How to: Preload the Cache (Management Studio)
To preload the cache with a user-specific report
Create a data-driven subscription for the report as follows. In Object Explorer, expand a report server node.
Expand the Home folder, and navigate to the folder containing the report. Expand the report item. Verify that the report uses stored or no credentials.
Right-click the Subscriptions folder, and click New Data-Driven Subscription. This starts the Data-Driven Subscription Wizard.
In the General Properties page, type a description for the subscription.
Select Null Delivery Provider from the Delivery method list box. Click Next.
In the Delivery Data Source page, click A custom data source..
Click Default to use the default connection string. The default connection string is the one used to connect to the report data source.
Specify the credentials used to access the data. Select an option to use stored or no credentials. Click Next.
In the Delivery Query page, type the query string that you use to retrieve the subscriber list from the external data source in Command text. For example:
Select * from UserInfo
Click the Validate button. The query must validate before you continue. When the Validation successful message appears, click Next.
In the Extension Settings page, click Next. There are no extension settings for the null delivery provider..
In the Parameter Settings page, configure the report's parameter values. Click Next.
In the Subscription Trigger page, specify when the subscription is processed. Do not choose When the report content is refreshed. That setting is for snapshots only. If want to use a pre-existing schedule, select On a shared schedule.
Or, to create a custom schedule, select On a custom schedule. Configure the schedule and then click Next.
In order for the subscribers to receive the newest report, the report cannot be configured to run as a snapshot. To configure the report to use the most recent data, follow the numbered steps in the next procedure.
To process a report with the most recent data
In Object Explorer, expand a report server node.
Expand the Home folder, and navigate to the folder containing the report you are preloading into the cache.
Right-click the report and then click Properties. The General page of the Report Properties dialog box is displayed.
Click Execution in the Select a page area on the left. The Execution page of the Report Properties dialog box is displayed.
Click Render this report with the most recent data.
Select Do not cache temporary copies of this report, or choose one of the following two cache options and configure the expiration as follows:
- To make the cached copy expire after a particular time period, click Cache the report. Expire after minutes. Type the number of minutes for report expiration.
- To make the cached copy expire on a schedule, click Cache the report. Expire based on the following schedule. Click Report-specific schedule, and then click Configure. After configuring the schedule, click OK.
Or, to use an existing schedule, click Shared schedule.