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 />

534<br />

Depending on how your report server is configured, the report may be runnable just<br />

with what we’ve put in thus far. For most systems, however, there is likely to be a<br />

restriction that requires you to filter your results in some manner (to avoid excessive<br />

loads) before executing the report.<br />

To add a filter, click on the Filter icon at the top of the Report Designer window. This brings up the Filter<br />

Data dialog. Drag the Credit Card ID field into the main pane of the dialog. This sets us up to use the Credit<br />

Card ID as a filter, but we still need to set the exact filter criteria. The default comparison is an equals,<br />

which doesn’t meet our need, so click on the word equals and select the Is Empty option as shown in<br />

Figure 17-22, then click OK.<br />

Figure 17-22<br />

When you have this done, click Run Report, and you’ll see the fruits of our labor, as shown in Figure 17-23.<br />

We, do, however, have a minor problem — the report has quite a few pages (it will not show how many<br />

for sure until we navigate to the end), and the information isn’t very useful the way it is currently sorted.<br />

No problem! The Report Builder makes this easy as cake to deal with by simply clicking the up/down<br />

arrows next to the columns of the report. In my case, I’m going to sort based on the person’s last name,<br />

as shown in Figure 17-24. Notice how the report is automatically grouped where it makes sense (avoiding<br />

repeating values).

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

Saved successfully!

Ooh no, something went wrong!