Hi All
I'm new in SSIS and reading a book called professional_microsoft_sql_server_2012_integration_services and I'm stuck on one topic. Details are:
I did the following steps:
Steps
1- Create a directory with an easy name like c:\ProSSIS\Chapter5\Export that you can use when exporting these pictures.
2- Create a new SSIS package named Export Column Example.dtsx. Add a Data Flow Task to the Control Flow design surface.
3- On the Data Flow design surface, add an OLE DB Data Source confi gured to the AdventureWorksDW database table DimProduct.
4- Add a Derived Column Transformation Task to the Data Flow design surface. Connect the output of the OLE DB data to the task.
5- Create a Derived Column Name named FilePath. Use the Derived Column setting of <add as new column>. To derive a new filename, just use the primary key for the filename and add your path to it. To do this, set the expression to the following:
“c:\\ProSSIS\\Chapter5\\Export\\” + (DT_WSTR,50)ProductKey + “.gif”
Can somebody explain Step no 5 ?. In addition, when I put this expression then I'm getting error. Please guide
Create a directory with an easy name likec:\ProSSIS\Chapter5\Exportthat you can use
when exporting these pictures.
2.
Create a new SSIS package named Export Column Example.dtsx. Add a Data Flow Task to
the Control Flow design surface.
3.
On the Data Flow design surface, add an OLE DB Data Source confi gured to the
AdventureWorksDW database table DimProduct.
4.
Add a Derived Column Transformation Task to the Data Flow design surface. Connect the
output of the OLE DB data to the task.
5.
Create a Derived Column Name named FilePath. Use the Derived Column setting of
<add as new column>. To derive a new fi lename, just use the primary key for the fi lename
and add your path to it. To do this, set the expression to the following:
“c:\\ProSSIS\\Chapter5\\Export\\” + (DT_WSTR,50)ProductKey + “.gif”