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. In the solution explorer, open (expand) the ETL.DW project and right-click on it to add a new package. Name it FactOrdersToHDPCuster.dtsx.
  1. Go to the Parameters tab and add a new parameter:
    • Name: LoadExecutionId
    • Data type: Int64
    • Value: Leave the default value 0
    • Sensitive: Leave the default value False
    • Required: True
  1. Add a data flow task on the control flow and name it dft_FactOrders.
  2. In the data flow task, drag and drop an OLE DB source. Name it ole_src_DW_vwFactOrders.
  3. Double-click on it to open the OLE DB source editor.
  4. Set the OLE DB connection manager to cmgr_DW.
  5. For data access mode, use the SQL command.
  6. Set the SQL command text to the following:
 SELECT OrderDate, FirstName, LastName, CompanyName, Category, ProductName, ...

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