SSIS: how to reset metadata

Scenario

When working with SSIS and source or destination metadata changes SSIS does not reset the metadata it deletes the changed column and adds a new one at the end of the list. This results in messy packages after several changes have occurred.

Solution

To reset the metadata on data sources

  1. In the OLE DB Source, never select a table from the drop down box, always use a select query;
  2. To refresh the metadata in the source in this case, replace the select statement with select a = 1. Then, after the metadata is refreshed, paste back your original statement.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s