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.

Figure 2-10<br />

Results to Text<br />

Figure 2-11<br />

Chapter 2: Tools of the Trade<br />

The Results to Text option takes all the output from your query and puts it into one page of text results.<br />

The page can be of virtually infinite length (limited only by the available memory in your system).<br />

Before discussing this further, rerun that previous query using this option and see what you get. Choose the<br />

Results to Text option and rerun the previous query by clicking Execute, as shown in Figure 2-12.<br />

The data that you get back is exactly the same as before. It’s just given to you in a different format. I use<br />

this output method in several scenarios:<br />

❑ When I’m only getting one result set and the results have only fairly narrow columns<br />

❑ When I want to be able to save my results in a single text file<br />

❑ When I’m going to have multiple result sets, but the results are expected to be small, and I want to<br />

be able to see more than one result set on the same page without dealing with multiple scrollbars<br />

35

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

Saved successfully!

Ooh no, something went wrong!