17.07.2015 Views

The Art of SQL Server FILESTREAM - Red Gate Software

The Art of SQL Server FILESTREAM - Red Gate Software

The Art of SQL Server FILESTREAM - Red Gate Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 6: <strong>FILESTREAM</strong> with SSIS and SSRSDouble-click on the Script Task to configure the properties <strong>of</strong> the script and start writingthe <strong>FILESTREAM</strong> handling code (Figure 6-19).Figure 6-19:Configuring the Script Task.This property page allows you select the script language you wish to use. For the purpose<strong>of</strong> this example, let us go ahead with C#.Once configured, the Script task will be executed at each iteration <strong>of</strong> the Foreach Loop.For each iteration, the Foreach Loop stores the value <strong>of</strong> the ItemID column in theitemID variable. We need to pass the itemID variable to the Script task so that we canwrite the code to process the item specified by the variable.Click on the button to the right <strong>of</strong> ReadOnlyVariables to open the Select Variables dialogbox. <strong>The</strong>n, locate the itemID variable and select it (Figure 6-20).248

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!