O'Reilly logo

Microsoft® SQL Server® 2008 Integration Services: Problem-Design-Solution by Jay Hackney, Brian Knight, Jessica M. Moss, Erik Veerman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

11

Scripting Design Patterns

Whether applying SSIS toward data integration or DBA tasks, extending SSIS through scripting to handle logic not handled by the out-of-the-box components can be a useful and powerful tool. By using the Script Task or the Script component, you can write code to accomplish things that are better suited to a full-blown programming language than the items provided. Writing scripts enables you to create workflow tasks in the control flow, or data-centric operations in the data flow.

This chapter is split into two separate “Problem-Design-Solution” sections. The first “Problem-Design-Solution” section delves into the Script Task inside of the control flow. The discussion walks through an example of needing to check the attributes of files for archiving files. The second “Problem-Design-Solution” section continues the scripting adventure with the Script component inside of the data flow. This scenario re-creates the call center fact ETL that was introduced in Chapter 8.

Problem — Advanced File Management

Throughout the previous chapters of this book, you’ve learned how to configure several control flow tasks, including the Execute SQL Task and Execute Package Task. The control flow is the SSIS workflow designer, where you can decide which and in what order processes should execute. The next section offers a look at another control flow task, the Script Task.

Script Task

The Script Task is the first foray into adding a programming language to an SSIS package. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required