Modifying the OLE DB Destination

New: 14 April 2006

Earlier in lesson 2, you updated the SQL statement in the Execute SQL task, Preparation SQL Task, to include a definition of the FullName column in the ProspectiveCustomers table. In this task, you will modify the OLE DB destination, Destination - ProspectiveCustomers, to support the FullName column.

You will also restore the column mappings in Destination - ProspectiveCustomers that are no longer valid because you added a Sort transformation to the data flow. The Sort transformation generates a new set of columns with different column identifiers, and you therefore need to remap the input columns and destination columns in Destination - ProspectiveCustomers.

  1. If not already open, open the Data Flow designer, either by double-clicking Data Flow Task or by clicking the Data Flow tab.

  2. Click the Derived Column transformation named Add FullName Column and drag its green arrow to Destination - ProspectiveCustomers.

  3. Double-click Destination - ProspectiveCustomers.

  4. In the Restore Invalid Column Reference Editor dialog box, click Select All, select the <Map using column name> option in the Column mapping option for selected rows list, and then click Apply.

    You can clear the Include downstream invalid column references check box. In this package, there are no downstream data flow components and this option has no effect.

  5. Click OK.

  6. Right-click Destination - ProspectiveCustomers and click Show Advanced Editor.

  7. In the Advanced Editor dialog box, click the Input and Output Properties tab, expand Destination Input, click External Columns, and then click Add Column. A new column named Column is added to the External Columns folder.

  8. Click the new column.

  9. In the right-hand pane, update the Name property to FullName, click the DataType property and select Unicode string [DT_WSTR] from the list. Update the Length property to 103.

  10. Click the Columns Mappings tab, and scroll down to the row with FullName in the Destination Column list. Click <ignore> in the Input Column list of that row, and then click FullName in the list.

  11. Verify that all input and output columns that have the same names are mapped.

  12. Click OK.

Community Additions