SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Assign variable in derived column


Assign variable in derived column

Author
Message
sumit.joshij
sumit.joshij
SSC Journeyman
SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)

Group: General Forum Members
Points: 84 Visits: 269
Is it possible or any other way to assign the Derived column expression value in a column.
for eg:
@[User::newcol]= FILE_PATH + "/" + FILE_NAME.

Please see the attachment for the same requirement. If this way is not possible then suggest me any other way to hold the expression value in a variable.
Attachments
derivedcol.jpg (12 views, 47.00 KB)
robert.gerald.taylor
robert.gerald.taylor
SSCommitted
SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)

Group: General Forum Members
Points: 1808 Visits: 1493
sumit.joshij (1/17/2013)
Is it possible or any other way to assign the Derived column expression value in a column.
for eg:
@[User::newcol]= FILE_PATH + "/" + FILE_NAME.

Please see the attachment for the same requirement. If this way is not possible then suggest me any other way to hold the expression value in a variable.

You can do this in a script task. Create your new derived column and then next in a script task assign that new column to the variable. See: http://www.bidn.com/blogs/PatrickLeBlanc/ssis/1098/ssis-assign-a-value-to-variable-using-dataflow-script-task

HTH,
Rob
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search