Included in SSIS PowerPack

SSIS Set Variable Transform

Set an SSIS variable from any upstream column inside the Data Flow: set, increment, append or fill a template.

Set Variable Transform is a free SSIS Data Flow transform that writes an upstream column value into an SSIS variable. Besides a plain Set, it can increment a counter, append values from many rows with separators, header and footer, or insert the value into a placeholder template.

Set Variable Transform is free in every edition. The same download also includes a trial of the paid PowerPack components

Set Variable Transform in SSDT
Set Variable Transform - Component Properties with VariableSetMode Append and VariableToSet User::varResultData
Append mode collects every row into User::varResultDataExplore the UI →

Trusted by data teams worldwide

MicrosoftIBMOracleDell TechnologiesHPCiscoAT&TVerizonDHLFedExUPSWalmart

Also rated on Capterra★★★★★ , Trustpilot★★★★★ and BBBA+ — see why teams trust ZappySys

At a glance

What Set Variable Transform can do

Set Variable Transform sets an SSIS variable from any upstream column inside the Data Flow, with modes to set, increment, append or fill placeholder templates.

Set variables in data flow

Set an SSIS variable from any upstream column value inside the data flow.

  • VariableToSet (e.g. User::vMyData)
  • Select the column on the Input Columns tab

Set Variable Transform help

Seven set modes

Choose the action to perform on the variable with VariableSetMode.

  • Set, Increment, IncrementByBuffer, IncrementByColumnValue
  • Append, AppendAndReplacePlaceholders, SetWithReplacePlaceholders

Component properties

Counters & increments

Increase or decrease a numeric variable as rows flow through.

  • IncrementBy accepts a positive or negative number
  • Increment by buffer or by a column value

Component properties

Append rows into one value

Combine values from many rows into a single variable.

  • RowSeparator (\r\n, \t, \n) and LastRowSeparator
  • Header and Footer strings

Component properties

Placeholder templates

Insert the upstream value into a template, along with other variable values.

  • <%value%> for the upstream value
  • {{User::MyVar}} for variables

Component properties

Custom value for NULL

Assign a value when the input is NULL, since SSIS doesn’t allow NULL in a variable.

  • UseCustomValueForNull and CustomValueForNull
  • Blank default: empty string for text, 0 for numbers

Component properties

Capture Base64 data

Save binary data converted to a Base64 string into a variable.

  • Use with Template Transform to convert Varbinary data

Varbinary to Base64 guide

SQL Server 2012–2025 & ADF

Runs in your environment on SQL Server 2012–2025 and Azure-SSIS.

  • SQL Server 2025, 2022, 2019, 2017, 2016, 2014, 2012 (32/64-bit)
  • Azure Data Factory (SSIS IR)
  • Design packages in Visual Studio 2017, 2019, 2022, or 2026
  • Windows only (64-bit OS): Windows 7–11 or Windows Server 2012–2025

Compatibility and requirements

Logging options

Control how much is logged during package execution.

  • LoggingMode: Normal, Medium, Detailed or Debugging
  • PrefixTimestamp adds a timestamp to log messages

Component properties

See all features
  • Free component, included in every SSIS PowerPack edition
  • Set an SSIS variable inside the data flow from any upstream column
  • Modes: Set, Increment, IncrementByBuffer, IncrementByColumnValue, Append, AppendAndReplacePlaceholders, SetWithReplacePlaceholders
  • Increment by a positive or negative number
  • Append values from many rows with row separator, last row separator, header and footer
  • Insert the upstream value into a template with <%value%>
  • Use variable placeholders such as {{User::MyVar}}
  • Custom value for NULL input
  • Save Varbinary data as a Base64 string into a variable (with Template Transform)
  • Make the mode dynamic with SSIS expressions (numeric option values)
  • Logging modes (Normal, Medium, Detailed, Debugging) with optional timestamp prefix
  • Support for SQL Server 2025, 2022, 2019, 2017, 2016, 2014, 2012 (32/64-bit) and Azure Data Factory

Runs in your environment ·

SQL Server 2012–2025

and Azure-SSIS · Read the FAQ

How it works

From the toolbox to your first run.

Key steps from the Set Variable Transform page and help file, with the screens you will see in SSDT.

Add it between a source and a destination.

Drag ZS Set Variable Transform into the Data Flow, connect a source (for example Dummy Data Source, OLE DB Source or CSV File Source) to it, and connect it to a downstream component such as Trash Destination.

  • Must be connected downstream, or set the Data Flow property RunInOptimizedMode=false
  • Otherwise SSIS may skip it when run from the command line or SQL Agent
Set Variable Transform - Drag and Drop

Inside the UI

Key settings, as they appear in SSDT.

Real screens from the Set Variable Transform product page. Step through them, or open any shot at full size.

Drag and drop

Drag Dummy Data Source and ZS Set Variable Transform into the Data Flow and connect them.

Compatibility and requirements

Designed to stay inside your SSIS runtime.

  • SQL Server 2012 through 2025, 32-bit and 64-bit
  • Windows only, 64-bit OS required. SQL Server Express and Web editions do not include SSIS
  • Azure Data Factory SSIS Integration Runtime
  • Self-hosted: credentials and data stay in your environment (external API calls still reach that service)
  • Fully functional 30-day trial of SSIS PowerPack

FAQ

Questions teams ask before they drop Set Variable Transform on the canvas.

What is Set Variable Transform?

Set Variable Transform is a free SSIS Data Flow transform that sets an SSIS variable from any upstream column. Besides a plain Set, it can increment a counter, append values from many rows into one variable, or insert the value into a placeholder template.

Is Set Variable Transform free?

Yes. It is included in the FREE edition of SSIS PowerPack, as well as in the Standard, Professional and Enterprise editions. See compare editions.

Why is my variable not set when the package runs from SQL Agent?

The transform must be connected to a downstream component (for example Trash Destination). If it isn’t, set the Data Flow property RunInOptimizedMode=false; otherwise the SSIS engine may skip unattached transforms when run from the command line or SQL Agent. Visual Studio turns optimization off, so it may work there without the workaround.

Which modes can I use?

VariableSetMode supports Set, Increment, IncrementByBuffer, IncrementByColumnValue, Append, AppendAndReplacePlaceholders and SetWithReplacePlaceholders. Placeholder modes use <%value%> for the upstream value and {{User::MyVar}} for variables.

What happens with NULL values?

SSIS doesn’t allow NULL in a variable. Turn on UseCustomValueForNull and set CustomValueForNull; if you leave it blank, NULL becomes an empty string for text and 0 for Int32, Int64, Decimal and Double.

Which SQL Server versions can I run it on?

SQL Server 2025, 2022, 2019, 2017, 2016, 2014, and 2012 (32- and 64-bit), plus Azure Data Factory with an SSIS Integration Runtime (packages must target SQL Server 2017). See Compatibility and requirements.

Independent ratings

Trusted by data teams, recognized by the industry

See why teams trust ZappySys (opens in new tab)

What customers say

  • Customer story

    ZappySys has been a fantastic way to bring our small company into the world of APIs, automation, and systems integration by providing tools within an easy-to-use framework.

    Ben KingeryOxspring Paul
  • Customer story

    At Synchronous Customers, we need to connect various types of data quickly. The super handy ZappySys connectors and great documentation let us do it without writing a lot of code.

    Joel ConnerSynchronous Customers
  • Customer story

    I looked everywhere for a product that could integrate to a web portal backend API via JSON. After many attempts, ZappySys was the only solution that gave me all the options I needed in a quick & clean interface within SSIS.

    Maz DunicSave the Children Australia
  • Customer story

    We have worked with the ZappySys support team for over a year and have consistently found them extremely helpful — resourceful and creative in offering multiple solutions to our challenges.

    Senthil SekarPublicis Groupe
  • Trustpilot

    I’ve been using ZappySys for over 6 years — it makes development faster, and I introduced it to my current company.

    Anna JohnsonTrustpilot review
  • Trustpilot

    I’m integrating data from APIs into database tables with SSIS/ZappySys — very easy to use, fast, and highly efficient without writing complex code.

    Carolyn S.Trustpilot review
  • Customer quote

    I submitted a support request and had someone logged in and fixing things within 2 hours.

    Barry Wilson
  • Customer quote

    The REST source is very powerful — the only thing I found I could use after trying components from major vendors.

    Jes KirkupKTC
  • Customer quote

    Whenever we run into an obstacle, ZappySys has a solution for us. We are so glad that we chose ZappySys PowerPack.

    Kevin ChenBerricle

Free in every edition

Install SSIS PowerPack and drag Set Variable Transform onto the Data Flow.

Set an SSIS variable from any upstream column inside the Data Flow: set, increment, append or fill a template.

  • Data Flow Transform in SSISSet Variable Transform appears in the toolbox after you install PowerPack.
  • Free to useSet Variable Transform is included in the FREE edition of SSIS PowerPack.
  • Live supportQuestions? Talk to a ZappySys engineer.

Talk to an engineer before or during your trial.

1 / 6