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

546<br />

For now, leave the actual Data Source drop-down box as <strong>SQL</strong> Native Client — this is generally the preferred<br />

method for accessing <strong>SQL</strong> <strong>Server</strong>. From there, set up your authentication information (I’ve used<br />

Windows Authentication in the preceding example) and choose AdventureWorks<strong>2008</strong> as your database.<br />

You’re now ready to click Next, where you’ll see what is, at first glance, essentially the same dialog. This<br />

time, however, we’re going to make a bit of a change in things. Change the Destination field to be Flat File<br />

Destination and, as shown in Figure 18-4, the rest of the options change to something more suitable to a<br />

file system–based destination instead of a table in our <strong>SQL</strong> <strong>Server</strong>.<br />

Figure 18-4<br />

As you can see, I’ve chosen to name my output file TextExport.csv, and filled out the other information<br />

in a manner appropriate for a typical comma-delimited file.<br />

Let me digress long enough to warn you to be very careful about using comma-delimited files. While<br />

this is something of a “tried and true” method of exporting and importing data, consider your delimiter<br />

very carefully; does your data potentially already have commas in it? What is that going to do to your<br />

exported (or imported) data? Just something to keep in mind when deciding formats (if the choice is<br />

yours — most of the time it won’t be).

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

Saved successfully!

Ooh no, something went wrong!