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

The arrow is representative of possible flow. We could, for example, add an FTP or external process task<br />

to our package to deal with elements of our Extract, Transform, and Load processes that can’t be handled<br />

within the one data flow task that we have. This control flow aspect is critical to many packages in several<br />

ways:<br />

❑ The flow outlined in this part of the package establishes precedence. Think about this for a<br />

moment: If we need to FTP our data export to some external system after we’ve created it, then<br />

we need to be sure that the FTP process does not fire until the export portion of the package is<br />

complete; control of flow does this for us.<br />

❑ If multiple tasks are available that do not have precedence on earlier tasks (or are dependent on<br />

the same task), the package can allow the tasks to branch and run simultaneously.<br />

❑ Further branching can take place depending on specific return conditions from the previous<br />

task (for example, retrieving a file if our FTP succeeds, but notifying an operator if it doesn’t).<br />

What, exactly, there is to potentially edit, varies widely depending on the specific type of task you have.<br />

It might range from things as complex as connection and login information (as would be needed in<br />

something like the FTP task mentioned earlier) to something as simple as there being nothing to edit at<br />

all. (Indeed, were we to edit our data flow task, it would actually take us to the Data Flow tab, with<br />

nothing specific to control flow.)<br />

Data Flow<br />

554<br />

Well, since our example is based around a data flow task, it’s probably not surprising to find a little bit<br />

more meat in this area. We can edit the data flow by either double-clicking our data flow task in the Control<br />

Flow tab, or selecting the data flow tab, and then selecting the data flow you’re interested in from<br />

the drop-down in the top of the pane (as shown in Figure 18-14).<br />

Figure 18-14<br />

Our wizard has populated these data flow items for us, but let’s take a quick look inside so we can relate<br />

to the various pieces; either double-click the Source – Query flow item, or right-click it and choose Edit.

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

Saved successfully!

Ooh no, something went wrong!