Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Changing values of Variables in SSIS

Posted on 2011-02-22
3
Medium Priority
?
194 Views
Last Modified: 2012-05-11
Please what can I do to change the initial values of a variable when a SQL server agent job is run. For example I am running the job from year 2001 to 2010. I have created variables called var_start_year and var_end_year that have their values defaulted to 2001 and 2010 and I would like to know how to change the values before the job is run from the server

Thanks
0
Comment
Question by:Lyn Udy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 15

Accepted Solution

by:
derekkromm earned 2000 total points
ID: 34957652
A couple of options:

1) setup a package configuration (in BIDS, go to SSIS, Package Configuration), and allow for the configuration of the desired variables
2) when executing the package from the GUI, go to the "Set Values" section, and specify the variables and values
3) when executing with a command line, specify the following: /set "\package.variables[var_start_year].Value";2001 /set "\package.variables[var_end_year].Value";2010

The configuration for any of these should all be similar. If you need extra details, let me know.
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 36119848
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
Recently I was talking with Tim Sharp, one of my colleagues from our Technical Account Manager team about MongoDB’s scalability. While doing some quick training with some of the Percona team, Tim brought something to my attention...
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question