Search
Database

SQL Server 2008 SSIS: Architecture and Core Concepts

First published Rewritten 2 min readBy Programming4us Editorial Team

SQL Server Integration Services (SSIS) is the ETL platform that ships with SQL Server 2008. It moves and transforms data between databases, files and applications. Understanding its architecture makes packages easier to design and troubleshoot.

Packages

A package is the unit of work: an XML .dtsx file built in Business Intelligence Development Studio (BIDS). It contains everything needed to run a job: connections, tasks, data flows, variables and error handling.

Control flow

The control flow is the workflow of the package. It contains:

  • Tasks: Execute SQL, File System, FTP, Send Mail, Script, Execute Package, Data Flow and more.
  • Containers: Sequence, For Loop and Foreach Loop (for example looping through files in a folder).
  • Precedence constraints: arrows that decide what runs next on success, failure or completion, optionally with expressions.

Data flow

A Data Flow task contains a pipeline that moves rows in memory buffers:

  • Sources: OLE DB, ADO.NET, flat file, Excel, XML.
  • Transformations: Derived Column, Lookup, Conditional Split, Aggregate, Sort, Merge Join, Slowly Changing Dimension and others.
  • Destinations: OLE DB, SQL Server, flat file, Excel.

Non-blocking transformations (Derived Column, Conditional Split) process rows as they flow and are fast. Blocking ones (Sort, Aggregate) must read all rows first and use more memory.

Connection managers, variables and expressions

Connection managers define connections once and reuse them across tasks. Variables hold values such as file names or row counts, and expressions compute properties at run time, for example building a file path that includes today's date.

Configurations

Package configurations (XML files, environment variables, SQL Server tables) change connection strings and settings between development, test and production without editing the package.

Logging and event handlers

Built-in logging writes events to SQL Server, text files or the Windows event log. Event handlers run tasks when events such as OnError fire, for example sending an alert.

Runtime and deployment

  • The SSIS runtime executes the control flow; the data flow engine manages buffers.
  • The SSIS service (MsDtsServer100) lets you store and monitor packages in msdb or the file system.
  • Run packages with dtexec, the Execute Package Utility (dtexecui) or SQL Server Agent jobs.

Today's equivalent

From SQL Server 2012, the project deployment model and the SSIS catalog (SSISDB) replaced package configurations with parameters and environments. In the cloud, Azure Data Factory can run SSIS packages and offers its own pipelines.