How to do it...

  1. From the SSIS toolbox, drag and drop, and Execute SQL Task on the control flow, and rename it sql_truncate_Staging_StgCloudSales.
  2. Double-click on it to open the SQL Task Editor. Set the properties as follows and click on OK:
    • Connection: cmgr_DW
    • SQL Statement: TRUNCATE TABLE [Staging].[StgCloudSales];
  1. From the SSIS toolbox, drag a Foreach Loop Container and rename it felc_StgCloudSales.
  1. Double-click on it to open the Foreach Loop Editor, and assign the properties in the Collection pane, as shown in the following screenshot:
  1. Now go to the Variable Mappings pane and add a string variable called User::AzureAggregatedData ...

Get Mastering SQL Server 2017 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.