17.06.2013 Views

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 17: Reporting for Duty, Sir! A Look At Reporting Services<br />

Go ahead and accept the defaults here by clicking Next, and we move on to the Collect Model Statistics<br />

dialog. The Collect Model Statistics dialog gives us two options:<br />

❑ Update statistics before generating: This will cause all statistics for the Data Source view to be<br />

updated prior to the Report Model actually being built. Each Data Source view keeps a set of<br />

statistics on the underlying data (such as how wide columns are, what data types are used, and<br />

such), and these statistics are utilized to make decisions on how exactly to best build the Report<br />

Model. You’ll want to choose this option if it is the first time you’re utilizing the Data Source<br />

view (as is true for us since we just created it) or if significant changes have happened since the<br />

last time the Data Source view was utilized.<br />

❑ Use current model statistics in the data source view: This just makes use of what’s already<br />

there. Depending on how many tables and indexes are involved, this can save a lot of time in<br />

getting the report generated (since you don’t have to wait on all the statistics to be updated), but<br />

it runs the risk of the Report Model making assumptions that are out of date regarding the<br />

makeup of your data.<br />

Whether you rely on existing statistics vs. going ahead and updating your statistics is a somewhat<br />

advanced concept. As such, I’m going to recommend that you go with the default here and always<br />

update your statistics unless you know exactly why you are skipping that and believe you understand<br />

the ramifications of doing so. For most installations, not updating the statistics in this scenario is not<br />

going to be a big deal, but it is one of those things that can very subtly reach out and bite you, so better<br />

safe than sorry.<br />

The next (and final) dialog is the Completing the Wizard dialog. Name your Report Model (I’ve chosen<br />

AdventureWorks<strong>2008</strong> Report Model — original, eh?) and click Run, and your Report Model will be generated<br />

as shown in Figure 17-17.<br />

Figure 17-17<br />

529

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!