Importing/Exporting Data  «Prev  Next»

Lesson 6 SQL Server Integration Services
Objective Identify the key features of SQL Server Integration Services (SSIS)

SQL Server Integration Services (SSIS) in SQL Server 2025

SQL Server Integration Services (SSIS) is a platform for building enterprise-level data integration and workflow solutions. It handles high-performance extract, transform, and load (ETL) operations, letting an organization pull data from scattered sources, reshape it, and land it somewhere it can actually be used.

Key Features of SSIS
  1. Comprehensive ETL Capabilities
    1. Data Extraction: retrieving data from diverse sources such as relational databases, flat files, XML files, and cloud-based services.
      Example: extracting data from a CSV file and a SQL Server database together. A Flat File Source component can read a CSV stored on a local server, parsing columns like customer ID, name, and purchase date, while an OLE DB Source pulls related data, such as order details, from a SQL Server table using a query like SELECT OrderID, CustomerID, Amount FROM Orders. Both sources combine in a single SSIS data flow for further processing.
    2. Data Transformation: cleansing, aggregating, merging, and converting data to prepare it for analysis.
      Example: cleaning and standardizing data mid-flow. A Derived Column transformation can build a full name from FirstName + " " + LastName, a Data Conversion transformation can turn a text date like "2025-05-13" into a proper date type, and a Conditional Split can route out rows with missing values in critical fields before they ever reach the destination.
    3. Data Loading: writing transformed data into its destination, typically a data warehouse or data mart.
      Example: loading transformed data into a SQL Server data warehouse. After extraction and transformation, an OLE DB Destination can load cleaned, standardized customer and order data into a DimCustomer or FactSales table, configured to use bulk insert for straight loads or a Lookup Transformation first when the load has to handle updates rather than pure inserts. Together, these three stages are how SSIS extracts data from diverse sources, reshapes it to meet business needs, and loads it efficiently into the systems that depend on it.
  2. Graphical Development Environment

    SSIS offers a graphical interface through SQL Server Data Tools (SSDT), letting developers design, debug, and deploy packages without writing extensive code. This visual approach speeds up development and keeps a package's logic easy to follow later, even for someone who didn't build it.

  3. Control Flow and Workflow Management

    The control flow in SSIS orchestrates tasks and workflows using precedence constraints, containers, and loops, enabling complex workflows that handle conditional logic, parallel execution, and iterative processing.

  4. Data Flow Engine

    SSIS's data flow engine is built for high-performance data movement and transformation, supporting asynchronous and parallel processing for large volumes of data during ETL operations.

  5. Extensibility and Customization

    Developers can extend SSIS by creating custom tasks, transformations, and log providers using .NET languages, allowing tailored solutions for specific business requirements.

  6. Robust Error Handling and Logging

    SSIS provides comprehensive error handling, including event handlers and logging features, for monitoring package execution, diagnosing issues, and keeping data integrity intact throughout the ETL process.

  7. Integration with Azure Services

    SSIS's integration with Azure services allows seamless data movement between on-premises systems and cloud platforms, including support for Azure Data Lake Storage, Azure Synapse Analytics, and more.


Diagram of the SSIS ETL process: data extraction, data transformation, and data loading, in SQL Server 2025.
Diagram which outlines the process of 1. Data Extraction, 2. Data Transformation, 3. Data Loading for SQL Server Integration Services (SSIS) in SQL Server 2025.

How SSIS Fits With What This Module Has Covered

Every loading method this module has covered so far, INSERT, SELECT INTO, BULK INSERT, and the bcp utility, moves data in one direction through one statement or one command. Each is excellent at exactly what it does, but none of them orchestrates a multi-step process on its own: branching logic, running several loads in a defined order, cleaning data mid-flight, or reacting to whether a previous step succeeded all have to be scripted by hand around them.

SSIS is where that orchestration becomes a first-class feature rather than something bolted on. A package built around this course's own SalesOrders and Inventory tables could use an OLE DB Source to pull new orders, a Lookup Transformation to flag which ones reference products already below their reorder threshold, a Conditional Split to route those onto a separate path, and two OLE DB Destinations writing to different tables, all as one visually designed, schedulable package instead of several separate scripts glued together with custom error handling. The individual pieces inside that package still rely on the same loading concepts already covered: an OLE DB Destination configured for a fast load is doing essentially what BULK INSERT does, just from inside a graphical data flow instead of a T-SQL statement.

Put another way, every tool this module has covered up to this point answers "how do I move this data," while SSIS also answers "what order should this happen in, and what should happen if a step fails." A control flow task can check whether a staging table actually received rows before letting a downstream task touch the production table, something that would otherwise mean writing and testing custom T-SQL error handling by hand for every single load.

Walking through that same SalesOrders example at the package level: a Data Flow Task holds the OLE DB Source, the Lookup, the Conditional Split, and the two destinations described above, wired together on the data flow canvas. Around that Data Flow Task, the control flow can add an Execute SQL Task that truncates the staging table before the load starts, a precedence constraint that only lets the data flow run if that task succeeds, and a Send Mail Task or an Execute Process Task wired to the failure path instead, so a load that goes wrong raises an alert rather than failing silently. None of this is a special SSIS-only concept; it's the same load-then-validate discipline this module has applied to every other statement and utility, just expressed as boxes and arrows instead of lines of T-SQL.


What's New in SQL Server 2025

SSIS's changes in SQL Server 2025 (17.x) are mostly about security and connectivity rather than new ETL functionality:

  • The ADO.NET connection manager now supports the Microsoft SqlClient Data Provider, which brings the TLS 1.3 and strict-encryption (TDS 8.0) connection modes already available elsewhere in SQL Server, along with Microsoft Entra ID authentication options such as interactive sign-in, managed identity, and service principal authentication, to SSIS's own connections.
  • A package deployed to the SSIS catalog can't use interactive Entra ID sign-in the way a package running inside Visual Studio can, so a deployed package needs a different authentication method, a service principal set through a parameter override, for example.
  • Connecting to a Microsoft Fabric warehouse, SQL analytics endpoint, or Fabric SQL database requires Entra ID; SQL Server or Windows authentication isn't an option for those targets at all.

A few things are also on their way out:

  • Deprecated: the legacy Integration Services Service in SSMS, used only by package-deployment-model projects stored in MSDB, and 32-bit mode, since current SSMS and Visual Studio tooling now support 64-bit only. The older SqlClient Data Provider (SDS) connection type is deprecated too, in favor of the ADO.NET connection manager described above.
  • Discontinued: the Attunity CDC components and CDC service for Oracle, the Microsoft Connector for Oracle, and the Hadoop Hive, Pig, and File System tasks. Microsoft's guidance for all of these points toward Azure Data Factory or Microsoft Fabric instead.
  • Breaking change: a project using the Microsoft.SqlServer.Dts.Runtime .NET API, common in packages built around an Execute SQL Task or anything relying on SQL Server Management Objects, needs its references updated and the project rebuilt before it will run on SQL Server 2025.

Existing packages generally keep working once these deprecations are accounted for. Azure Data Factory, and increasingly Fabric Data Factory, are the modernization paths Microsoft points toward for teams moving away from on-premises SSIS altogether, though on-premises SSIS itself remains fully supported and is still where a great deal of real-world ETL work runs. Azure-SSIS Integration Runtime, within Azure Data Factory, already lets an existing SSIS project run its packages in Azure with little or no redesign, which tends to be the first step for a team modernizing its infrastructure before it considers rebuilding anything as native Fabric Data Factory pipelines.


The SSIS Catalog and Deployment

Modern SSIS development uses the project deployment model: an entire Visual Studio project, with one or more packages inside it, deploys as a single unit to the SSIS Catalog, stored in a database named SSISDB that's created the first time the catalog is enabled on an instance. This is different from the older package deployment model, where individual packages were stored and run independently, often straight out of MSDB, the arrangement behind the legacy Integration Services Service now deprecated in SQL Server 2025.

Deploying to the catalog rather than running packages ad hoc brings a few practical benefits that matter once SSIS moves from a learning exercise to something a business actually depends on: environment-specific parameter values can be set per deployment without touching the package itself, every execution is logged and queryable through catalog views such as catalog.executions and catalog.operation_messages, and package versions are tracked, so a bad deployment can be traced back to exactly what changed and when.

Querying execution history through the catalog views is, at its core, the same kind of monitoring this course introduced earlier for query performance: Query Store and the dynamic management views covered in this course's first module answer "how did this query perform," and the SSIS catalog views answer the equivalent question for a package: how long did this run take, which step failed, and what was the exact error. A failed package run shows up in catalog.executions with a status indicating failure, and catalog.operation_messages for that execution id holds the actual error text, the same kind of drill-down this course has already practiced against SQL Server's own system views.


Security Around SSIS Connections

The connection managers inside a package are subject to the same security principles already covered in this course, not a separate set of rules. A connection authenticating with Microsoft Entra ID, covered above, follows the same least-privilege thinking as any other credential: a service principal used by a deployed package should hold only the permissions that package's own connections actually need, not broad administrative rights granted out of convenience. Sensitive connection string values, a password, a SAS token for the kind of Azure Blob Storage access this module covered for BULK INSERT, are stored as sensitive parameters in the catalog rather than in plain text inside the package itself, and Always Encrypted, already covered earlier in this course, protects column values a package reads or writes exactly as it would for any other client connecting to the database.


Executing SSIS Packages from the Command Line

A package deployed to the SSIS catalog can be run from the command line with dtexec, or through its graphical counterpart, dtexecui, the Execute Package Utility. Both still carry the dt prefix left over from Integration Services' earlier name, Data Transformation Services (DTS), the same naming holdover this module already noted with DTSWizard.exe, the executable behind today's SQL Server Import and Export Wizard. SSIS replaced DTS back in SQL Server 2005; the tool names simply never caught up.

Running a package from the command line is useful for scripting an execution, overriding specific parameter values at runtime without editing the package itself, or calling a package from a scheduled task, a batch file, or a step in a larger automation pipeline. The utility establishes most of the execution context on its own; the override options exist for the cases that genuinely need something different from how the package was built to run, a different connection string in a test environment, for instance, rather than for routine use.


Getting Started with SSIS

To begin using SSIS in SQL Server 2025:

  1. Install SQL Server Integration Services: during SQL Server setup, select the Integration Services feature to install SSIS components.
  2. Set Up SQL Server Data Tools (SSDT): install the SQL Server Integration Services Projects extension for the current version of Visual Studio to design and manage SSIS packages.
  3. Create and Deploy Packages: use SSDT to build SSIS packages, then deploy the project to the SSIS Catalog, described above, for execution and management. The Integration Services Deployment Wizard handles this from inside SSDT, or it can run unattended from the command line as part of a larger release process.
  4. Monitor and Manage Packages: use SQL Server Management Studio (SSMS) to monitor package execution, review logs and the catalog's own execution reports, and manage what's deployed.

SQL Server Integration Services in SQL Server 2025 offers a comprehensive solution for data integration and workflow automation, built on the same connection, authentication, and security model the rest of SQL Server 2025 uses, empowering organizations to manage their data transformation needs without a separate set of rules to remember just because the work happens inside a package instead of a query window.


Where This Leaves Module 2

Across this module, loading data into SQL Server has turned out to be less about one right tool and more about picking the one that fits the job: INSERT for a handful of known rows, SELECT INTO for standing up a new table from a query, BULK INSERT for a large file SQL Server itself can reach directly, bcp for the same kind of file when SQL Server can't reach it, or when data needs to move out instead of in, and SSIS for anything that needs real orchestration around the load rather than a single statement or command. The skills outline for the DP-300 (Azure Database Administrator Associate) certification, covered briefly earlier in this module, groups several of these under planning and implementing a migration strategy; this module's progression from simple T-SQL statements through command-line tools to a full ETL platform mirrors that same path from a quick one-off load to a repeatable, production-grade pipeline.

None of these tools retires the others. A production environment built around SQL Server 2025 is just as likely to use a plain INSERT for an application's everyday writes, BULK INSERT for a nightly file drop, and an SSIS package for the multi-step monthly reconciliation job that touches half a dozen tables in a specific order, all side by side. Knowing which one fits a given job, rather than reaching for the most powerful tool out of habit, is the actual skill this module has been building toward.


SEMrush Software 6 SEMrush Banner 6