Coming Soon: GET:IT Endpoint Management 1-Day Conference on September 28th at 9:30 AM ET Coming Soon: GET:IT Endpoint Management 1-Day Conference on September 28th at 9:30 AM ET
SQL Server

Introduction to the SQL Server Integration Services (SSIS) Development Environment

This article is a bare bones introduction to SQL Server Integration Services (SSIS), with an emphasis on the SSIS development environment. SSIS is Microsoft’s full feature extract-transform-load (ETL) tool in SQL Server 2005, 2008, and R2.  SSIS is used to extract data from any of a myriad of sources, such as SQL Server databases, flat files, Excel files, Oracle and DB2 databases, etc. It  performs data manipulation and transformation on the data and delivers it to one or more data destinations.

While SSIS is part of the SQL Server suite of tools, and is very adept at handling SQL Server-to-SQL Server ETL operations, it easily handles many other source and destination you have a library for. Potential applications include scrubbing and exporting Excel data for output to network directories, or third party database ETL transformations (e.g., Oracle-to-Oracle data loads). Let’s create a new SSIS package and take a brief look at the major components and features of the SSIS development environment.

Visual Studio vs. BIDS

The SSIS development environment can be installed during a SQL Server installation or independently, i.e., you don’t have to have the SQL Server engine installed to develop SSIS packages. The SSIS development environment consists of the Business Intelligence Development Studio (BIDS), a full-fledged Visual Studio installation with components specific to SSIS and other elements comprising SQL Server business intelligence. If you already have Visual Studio 2008 installed on your computer, the SSIS installation will install a separate BIDS application and add components to your existing Visual Studio. You can develop in either environment, as they are identical.

Important Panes

Like all files in Visual Studio, all SSIS packages are part of a VS project, which is in turn part of a solution. To create a new project and a new SSIS package:

Sponsored Content

Say Goodbye to Traditional PC Lifecycle Management

Traditional IT tools, including Microsoft SCCM, Ghost Solution Suite, and KACE, often require considerable custom configurations by T3 technicians (an expensive and often elusive IT resource) to enable management of a hybrid onsite + remote workforce. In many cases, even with the best resources, organizations are finding that these on-premise tools simply cannot support remote endpoints consistently and reliably due to infrastructure limitations.

  1. Start BIDS or Visual Studio
  2. Select File > New > Project
  3. Select “Integration Services Project” from Business Intelligence Projects
  4. Name the project and select the location. Click OK.
New Project Window in Visual Studio/BIDS
(Above: New Project Window in Visual Studio/BIDS)

The new project will display a new, blank package. Your most valuable windows are:

  • Toolbox – Contains the elements you can add to your package. The contents of the Toolbox change depending on what main window tab you’re in.
  • Main Window – The development window. Each tab shows a different level or focus of the development. Today we are only interested in two of those tabs.
    • Control Flow tab – Contains control flow elements. Control flow is anything that moves in the package – anything that causes you to go from one step to another. Examples include moving or deleting a file, creating indexes, etc.
    • Data Flow tab – Data flow is anything that physically moves data. All sources, destinations, and transformations are included in data flow.
  • Connection Managers – In SSIS, there is a single connection manager for each connection.  When you create a data source, you assign it a connection manager. After that, if the connection manager changes, all data sources that use it are affected as well. That wasn’t the case in DTS (the ETL tool prior to SQL Server 2005); if you had to change a connection, you had to go to each and every task and change it there individually.
  • Solution Explorer – This displays the Package elements – the package itself, data sources, packages, etc.
  • Properties – This is a context sensitive menu that displays the properties for whatever is currently selected, from the package itself down to individual components.

In the Solution Explorer, right-click and rename your package to something descriptive, like “MyFirstPackage.dtsx”.  Answer Yes to the popup window “Do you want to rename the package object as well?”  You can also add existing packages to your project, or import packages from the file system or from a SQL Server.

SSIS Main Window in Visual Studio/BIDS
(Above: SSIS Main Window in Visual Studio/BIDS

Tabs: Control Flow vs. Data Flow

In DTS (the SQL Server 2000 predecessor to SSIS), control flow and data flow were the same thing, which caused a lot of problems – especially with sequencing tasks. In SSIS, control flow and data flow are viewed and controlled separately, using two tabbed windows. Control flow is anything that controls or moves in the package – anything that causes you to go from one step to another. A few examples include loops (like For and For Each), scripting and FTP, send mail, creating indexes, or data profiling.  Notice that “Data Flow Task” is an element in the Control Flow’s Toolbox pane. Data flow is anything that physically moves and manipulates the data in the SSIS pipeline (as opposed to running a SQL command that runs on the SQL Server). Data sources, destinations, and transformations in the data flow allow you to:

  • pull data from one or many disparate sources
  • convert data types
  • clean up “dirty” data
  • split or merge data from one or more sources
  • and much more.

Further Reading

For more information on SSIS, reference:

Related Topics:

Live Webinar: Active Directory Security: What Needs Immediate Priority!Live on Tuesday, October 12th at 1 PM ET

Attacks on Active Directory are at an all-time high. Companies that are not taking heed are being punished, both monetarily and with loss of production.

In this webinar, you will learn:

  • How to prioritize vulnerability management
  • What attackers are leveraging to breach organizations
  • Where Active Directory security needs immediate attention
  • Overall strategy to secure your environment and keep it secured

Sponsored by: