Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Assign value to variables Expand / Collapse
Author
Message
Posted Monday, November 2, 2009 2:01 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued 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
Posted Monday, November 2, 2009 2:49 PM
Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Tuesday, August 19, 2014 10:01 AM
Points: 3,844, Visits: 3,841
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
Posted Monday, November 2, 2009 2:54 PM
Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Tuesday, August 19, 2014 10:01 AM
Points: 3,844, Visits: 3,841
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
Posted Thursday, October 18, 2012 8:42 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Yesterday @ 5:03 AM
Points: 94, Visits: 452
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 »

Add to briefcase

Permissions Expand / Collapse