Skip to Content
Microsoft® SQL Server® 2008 Integration Services: Problem-Design-Solution
book

Microsoft® SQL Server® 2008 Integration Services: Problem-Design-Solution

by Erik Veerman, Jessica M. Moss, Brian Knight, Jay Hackney
November 2009
Beginner to intermediate
476 pages
13h 20m
English
Wrox
Content preview from Microsoft® SQL Server® 2008 Integration Services: Problem-Design-Solution

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

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Microsoft® SQL Server® 2012 Integration Services

Microsoft® SQL Server® 2012 Integration Services

Rakesh Parida Wee-Hyong Tok Matt Masson, Xiaoning Ding, and Kaarthik Sivashanmugam
Professional SQL Server™ 2005 Integration Services

Professional SQL Server™ 2005 Integration Services

Brian Knight, Allan Mitchell, Darren Green, Douglas Hinson, Kathi Kellenberger, Andy Leonard, Erik Veerman, Jason Gerard, Haidong Ji, Mike Murphy

Publisher Resources

ISBN: 9780470525760Publisher Website