﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / Business Intelligence  / Assign variable in derived column / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 04:08:31 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Assign variable in derived column</title><link>http://www.sqlservercentral.com/Forums/Topic1408252-147-1.aspx</link><description>[quote][b]sumit.joshij (1/17/2013)[/b][hr]Is it possible or any other way to assign the Derived column expression value in a column.for eg:[b]@[User::newcol]= FILE_PATH + "/" + FILE_NAME[/b].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.[/quote]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: [url]http://www.bidn.com/blogs/PatrickLeBlanc/ssis/1098/ssis-assign-a-value-to-variable-using-dataflow-script-task[/url]HTH,Rob</description><pubDate>Thu, 17 Jan 2013 07:55:26 GMT</pubDate><dc:creator>robert.gerald.taylor</dc:creator></item><item><title>Assign variable in derived column</title><link>http://www.sqlservercentral.com/Forums/Topic1408252-147-1.aspx</link><description>Is it possible or any other way to assign the Derived column expression value in a column.for eg:[b]@[User::newcol]= FILE_PATH + "/" + FILE_NAME[/b].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.</description><pubDate>Thu, 17 Jan 2013 02:55:14 GMT</pubDate><dc:creator>sumit.joshij</dc:creator></item></channel></rss>