O'Reilly logo

SQL Server 2017 Integration Services Cookbook by Dejan Sarka, Matija Lah, Christian Cote

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

  1. Open the DimProduct_Incomplete if not done and go into the data flow task (dft_DimProduct_ups).
  2. Add a lookup transform after the der_NULLColumns and rename it lkp_DimProduct_productid.
  3. Double-click on it to open the Lookup Transformation Editor.
  4. On the General tab, change how to handle rows with no matching entry to redirect rows to no matching output.
  5. On the Connection tab, select Use result of SQL query and paste the following query in the textbox:
SELECT  [IDProduct] 
      , [ProductName] 
      , [EnglishDescription] 
      , [FrenchDescription] 
      , [Color] 
      , [Size] 
      , [Weight] 
      , [StandardCost] 
      , [ListPrice] 
      , [ModelName] 
      , [Category] 
      , [SubCategory] 
      , [LoadExecutionId] 
FROM    [DW].[DimProduct]; 
  1. On the Columns tab, select all the columns except ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required