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

Next, try clicking on the Edit Mappings… button, which takes you to the dialog box shown in Figure 18-8.<br />

Figure 18-8<br />

At first, things will probably appear pretty mundane here, but, actually, things are getting a lot more<br />

interesting.<br />

Try clicking on any of the Destination column values. You’ll see a drop-down option appear, and that<br />

will include the option to ignore that column, essentially omitting a source column from the destination<br />

when you output the file.<br />

This should bring up the question of “Why would I have even put the column in the original query if I<br />

was just going to ignore it at output?” The reasons are multifold. First, you may have wanted the column<br />

there primarily for preview purposes to verify that the data is what you expected — for example, including<br />

the names to verify that it seems like the right people when you only intend to output the EmployeeID.<br />

Also, you may be using a query that is copied from some other source and want to avoid risking editing<br />

it (for example, if it is particularly complex).<br />

One other point: This dialog is shared with the direct table choice. (Back when we chose Query, we had<br />

the option of a table, remember?) So the option is even more applicable in direct table copy scenarios,<br />

where there may be many columns in the table that you don’t want in the end output.<br />

Next, try clicking on the Type column values, and you’ll see a number of choices.<br />

I highly recommend resizing the columns in this dialog so you can see what the Type column is really<br />

trying to show you. Just hover your mouse over the right side of the column header much as you would<br />

if you were using Excel, and then click and drag the column divider to the right to enlarge the column.<br />

549

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

Saved successfully!

Ooh no, something went wrong!