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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

Reporting Ser vices 101<br />

Odds are that you’ve already generated some reports in your day. They may have been paper reports off<br />

a printer (perhaps in something as rudimentary as Access’s reporting area — which is actually one of the<br />

best parts of Access to me). They may have been off a rather robust reporting engine such as Crystal Reports.<br />

Even if you haven’t used tools that fancy, one can argue that handing your boss the printout from a stored<br />

procedure is essentially a very simple (and not necessarily nice looking) report — I would tend to agree<br />

with that argument.<br />

The reality, however, is that our managers and coworkers today expect something more. This is where<br />

Reporting Services comes in. Reporting Services really has two different varieties of operation:<br />

❑ Report Models: This is making use of a relatively simple, web-driven interface that is meant to<br />

allow end users to create their own simple reports.<br />

❑ Reports generated in Visual Studio: While this doesn’t necessarily mean you have to write<br />

code (you can actually create simple reports using drag-and-drop functionality — something<br />

we’ll do in this chapter as an example — you can design fairly robust reports.<br />

Note that, while your users can eventually access these reports from the same Reporting Services Web<br />

host, they are based on somewhat different architectures (and, as you will see, are created in much different<br />

fashions).<br />

In addition, Reporting Services provides features for pre-generating reports (handy if the queries that<br />

underlie the report take a while to run) as well as distributing the report via e-mail.<br />

Building Simple Repor t Models<br />

518<br />

To create a simple model, start by opening the Business Intelligence Studio.<br />

Note that this is entirely different from the <strong>SQL</strong> <strong>Server</strong> Management Studio that we’ve been working<br />

with thus far. The Business Intelligence Studio is a different work area that is highly developer- (rather<br />

than administrator-) focused; indeed, it is a form of Visual Studio that just has project templates oriented<br />

around many of the “extra” services that <strong>SQL</strong> <strong>Server</strong> offers. In addition to the work we’ll do with<br />

the Business Intelligence Studio in this chapter, we will also visit it some to work with Integration Services<br />

in Chapter 18.<br />

Choose File ➪ New Project, and you should bring up the dialog shown in Figure 17-1.<br />

Choose an appropriate name (I’ve gone with the rather descript ReportModelProject), and click OK. This will<br />

bring you to what should look like an everyday, run-of-the-mill Visual Studio development environment.<br />

Note that the exact appearance of the dialog shown in Figure 17-1 may vary somewhat<br />

depending on whether you have Visual Studio installed and, if so, which specific<br />

languages and templates you’ve installed. The image is of the most generic<br />

<strong>SQL</strong> <strong>Server</strong>–only installation.

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

Saved successfully!

Ooh no, something went wrong!