Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Data Warehousing
»
Integration Services
»
Assign value to variables
Assign value to variables
Rate Topic
Display Mode
Topic Options
Author
Message
yosiasz
yosiasz
Posted Monday, November 02, 2009 2:01 PM
Valued Member
Group: General Forum Members
Last Login: Monday, November 12, 2012 4:54 PM
Points: 54,
Visits: 816
Hi there
BOL says "SQL Server 2005 Integration Services (SSIS), expressions can be used to define conditions for CASE statements, create and update values in data columns, assign values to variables, update or populate properties at run time, define constraints in precedence constraints, and provide the expressions...."
But do you assign Assign value to variable in expressions? Or is there any place else other than the Property Expression editor where you can assign a value to a variable?
Thanks!
Post #812579
John Rowan
John Rowan
Posted Monday, November 02, 2009 2:49 PM
Hall of Fame
Group: General Forum Members
Last Login: Tuesday, January 29, 2013 10:54 AM
Points: 3,837,
Visits: 3,821
There are several ways to get values into variables within SSIS. You can populate variables with return values from SPs, full ADO datasets, Filenames from a for-each-file operation, expression builder, script task, etc.
What is it specifically that you are trying to do?
John Rowan
======================================================
======================================================
Forum Etiquette: How to post data/code on a forum to get the best help
- by Jeff Moden
Post #812605
John Rowan
John Rowan
Posted Monday, November 02, 2009 2:54 PM
Hall of Fame
Group: General Forum Members
Last Login: Tuesday, January 29, 2013 10:54 AM
Points: 3,837,
Visits: 3,821
By the way, here's a good read on the subject:
http://www.sqlservercentral.com/articles/Integration+Services+(SSIS)/64014/
John Rowan
======================================================
======================================================
Forum Etiquette: How to post data/code on a forum to get the best help
- by Jeff Moden
Post #812612
SQL Swerver
SQL Swerver
Posted Thursday, October 18, 2012 8:42 AM
Valued Member
Group: General Forum Members
Last Login: Yesterday @ 3:24 AM
Points: 67,
Visits: 350
I think the question is: is there a way to populate a User::variable from an expression, eg. SET [User::variablename]='value' so that any subsequent expressions or SSIS tasks can read this value. That is, without using an independant script task to achieve this using VB.
A real world example: a single Send Mail notification task with multiple inbound Failure Precedents that knows the name of any given previous task because that previous task populated a User::variablename with it's own Task name. So the Send Mail subject line can be dynamically populated with the Task that failed.
Post #1374411
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.