?
Solved

Pass variables to SSIS package

Posted on 2011-03-10
4
Medium Priority
?
602 Views
Last Modified: 2012-06-21
I have created a SSIS package and schedule it with SQL agent. However, any idea how to change the variables defined in the SSIS package.

Thanks
0
Comment
Question by:AXISHK
[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
  • 2
  • 2
4 Comments
 
LVL 15

Expert Comment

by:derekkromm
ID: 35103018
open your sql agent job
edit the ssis step
there should be a "set values" tab - thats where you can set variables
property path is: Package.Variables[User::<var name>].Value
value is whatever you want to set it to
0
 

Author Comment

by:AXISHK
ID: 35103335
Sorry, still couldn't sort out how to put the SSIS variables into the corresponding field. Suppose the variables are defined in SSIS as shown below. How to put them into the corresponding fields in SQLAgent.

Great thank again.

SQLAgent.bmp
SSIS.bmp
0
 
LVL 15

Accepted Solution

by:
derekkromm earned 2000 total points
ID: 35104308
Property Path: Package.Variables[User::EndDate].Value
Value: "2/9/2011"

Property Path: Package.Variables[User::StartDate].Value
Value: "2/1/2011"

0
 

Author Closing Comment

by:AXISHK
ID: 35221578
Tks.
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

I have written a PowerShell script to "walk" the security structure of each SQL instance to find:         Each Login (Windows or SQL)             * Its Server Roles             * Every database to which the login is mapped             * The associated "Database User" for this …
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

752 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