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 18: Getting Integrated with Integration Services<br />

We’re not going to go into real detail on this, because the options available will vary widely depending<br />

on the particular OLE DB data source you’ve selected. Indeed, the real point of the moment is just that:<br />

SSIS will alter the dialog to give you contextual choices that are relevant to the particular OLE DB data<br />

source you’re using. In the preceding example, I’ve simply clicked the “Column names in the first data<br />

row” option, and it’s time to click Next again. This takes us to choices for selecting what data we want<br />

out of our source database. We have two choices here:<br />

❑ Copy: This has us do a straight copy out of a table or view.<br />

❑ Query: This allows us to select out of pretty much any operation that’s going to yield a result set.<br />

Let’s start by taking a look at the Query option. If you choose this option and click Next, you get yet<br />

another dialog; this one pretty boring in the sense that all it does is give you a box where you can enter<br />

in the text of your query. (See Figure 18-5.)<br />

Figure 18-5<br />

In my example here, I’ve shown where we could be setting up to export a list of employees that we hired<br />

in our first month of business. If you want to test this, you can type the query, and then try testing it<br />

with the Parse button to make sure that the query you want to run is syntactically valid, or you can copy<br />

it into a query window in the Management Studio and test it there. Then click Next to get to the dialog<br />

box shown in Figure 18-6.<br />

547

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

Saved successfully!

Ooh no, something went wrong!