SSIS Snack: OLE DB Destination 1

Introduction

This SSIS Snack is a continuation of a couple previous SSIS Snacks:

Final (?) Destination

Drag an OLE DB Destination adapter from the toolbox onto the data flow canvas (if you haven’t already). After connecting a data flow path from the output of the Conditional Split to the OLE DB Destination, double-click the data flow path and select the Metadata page.

 

Note this contains a definition of the “columns” in the data flow pipeline. 

Rename the OLE DB Destination adapter StageRows. Open the editor, select the destination connection manager and set the Data Access Mode property to “Table or view”. Next (this is the cool part) click the New button beside the “Name of the table or view” dropdown.

The New button pops open a Create Table window populated with a CREATE TABLE statement. The table name comes from the name of the OLE DB Destination adapter, the column DDL is derived from the Data Flow Path’s metadata (we saw this earlier). Isn’t that cool?

As soon as you click the OK button, the DDL is executed and the table created.

:{> Andy

Andy Leonard

andyleonard.blog

Christian, husband, dad, grandpa, Data Philosopher, Data Engineer, Azure Data Factory, SSIS guy, and farmer. I was cloud before cloud was cool. :{>

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.