Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7810593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:50:28+00:00 2026-06-02T03:50:28+00:00

We have a SSIS job called ExportData and it accepts the ‘ExportType’ Parameter. The

  • 0

We have a SSIS job called ExportData and it accepts the ‘ExportType’ Parameter. The ExportType parameter can be ‘schedule’ or ‘unschedule’.

I created the Variable called ‘@ExportType’ and created the SSIS Configuration and expose the variable in the Configuration file and called it ‘ScheduleConfig’. I copied that file and change the value to ‘unschedule’ and called it ‘UnscheduleConfig’.

I created the SSIS Job in the SQL Server 2008 and set up 2 steps for both ‘Schedule’ and ‘Unschedule’. I attached the correct config file for each Step. But whichever step I run, it always execute ‘Schedule’. I am sure and double checked the Config files and Steps.

How can I run 2 different jobs with 2 different configuration files?

I did try by using the SetValues method and it doesn’t work too.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T03:50:30+00:00Added an answer on June 2, 2026 at 3:50 am

    If I understand your requirements correctly. here is a sample package created in SSIS 2008 R2 and does what you are looking for. The sample uses a single package, which is executed under two different SQL agent job steps and both the steps use a different copies of the same configuration file. The configuration files hold different values for the variable used inside the package.

    • Created a sample SSIS package named SO_10177578. Within the package, created a package variable named ExportType of data type String. Also, placed the Execute SQL Task on the Control Flow tab. This task will help to identify the value being passed to the variable ExportType.

    New package

    • Added the OLE DB connection to a sample database and named the connection as SQLServer. I chose to use SQL Server authentication for this connection manager.

    Connection manager

    • Within the SQL database, created a table named dbo.ExportData with the following strucutre. Id column is a identity column.

    Table structure

    • The table doesn’t contain any data to begin with. This table will be populated with data when the package is executed.

    No data to begin with

    • On the SSIS package, clicked on the SSIS menu –> selected Package Configuration option. On the Package Configurations Organizer dialog, selected the Enable package configurations checkbox and clicked on the Add button. Created a new package configuration of the type XML Configuration file. Selected a path to store the file.

    Package type

    • Added the Value property of the variable ExportType and the ConnectionString property of the connection manager SQLServer to the configuration file.

    Values added to file

    • On the Execute SQL Task, selected the Connection to be SQLServer and set the SQLStatement property to INSERT INTO dbo.ExportData (PackageName, ExportTypeValue) VALUES (?, ?)

    Execute SQL Task General

    • Configured both the parameters to the appropriate variables available on the package. Now the package is ready for deployment.

    Parameter mapping

    • On the database server’s SQL Agent node, created a new SQL job named Test_ExportData. Owner field information is removed to hide sensitive information.

    SQL job

    • On the SQL job’s Steps page, created two steps named Step_01 and Step_02.

    SQL Job steps

    • Step 1 is configured as below with the package being stored in the path c:\temp\SO_10177578.dtsx.

    Step 1 Package

    • Copied the package configuration file created using the package and changed the value for the variable ExportType to Schedule. Named the configuration file as ScheduleConfig.dtsConfig. Screenshot shows only part of the configuration file to hide sensitive connection string information.

    ScheduleConfig

    • In step 1 of the job, referred the newly created package configuration file from the path c:\temp\Test\ScheduleConfig.dtsConfig.

    Step 1 config

    • Step 2 is configured as below and it uses the same package stored in the path c:\temp\SO_10177578.dtsx as used by step 1.

    Step 2 Package

    • Copied the package configuration file created using the package and changed the value for the variable ExportType to Unschedule. Named the configuration file as UnscheduleConfig.dtsConfig. Screenshot shows only part of the configuration file to hide sensitive connection string information.

    UnscheduleConfig

    • In step 2 of the job, referred the newly created package configuration file from the path c:\temp\Test\UnscheduleConfig.dtsConfig.

    Step 2 Config

    • Now, both the steps are configured. Executed the new SQL agent job.

    Job executed

    • Queried the table ExportData. You can notice that the package was executed twice and each execution in the SQL agent job’s steps used the appropriate configuration files specified on the steps.

    Data verified.

    Hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 2 azure sql db and I've created SSIS job to transfer some
In my SSIS job, I have a need to accumulate a set of rows
I have a job on SQL Server 2005 running a ssis package. The package
We have an SSIS job that has been running for over a year with
When a certain thing happens in an SSIS job I have running, I need
I have an SSIS job which takes files from an input FTP directory and
I have a batch file that runs an SSIS job. I have no knowledge
We have a complex SSIS job and in each transaction we have to inserts
I have an SSIS package that is being executed by an SQL Job which
Here's my scenario - I have an SSIS job that depends on another prior

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.