Note that there are some explanatory texts on larger screens.

plurals
  1. POSource Table Structure Changes in SSIS Data Source
    primarykey
    data
    text
    <p>I am importing a FoxPro table into SQL Server 2008 using SSIS. The source data is a proprietary database that I have no control over. Let call the table I am importing Customers.</p> <p>Sometimes, the structure for Customers looks like this:</p> <p><strong>ID (int)</strong></p> <p><strong>NAME (char(30))</strong></p> <p><strong>ADDRESS (char(30))</strong></p> <p><strong>CITY (char(20))</strong></p> <p><strong>STATE (char(2))</strong></p> <p><strong>ZIP (char(10))</strong></p> <p><strong>CCNUM (char(16))</strong></p> <p>Other times, it looks like this:</p> <p><strong>ID (int)</strong></p> <p><strong>NAME (char(30))</strong></p> <p><strong>ADDRESS (char(30))</strong></p> <p><strong>CITY (char(20))</strong></p> <p><strong>STATE (char(2))</strong></p> <p><strong>ZIP (char(10))</strong></p> <p><strong>CCPTR (char(100))</strong></p> <p>This proprietary database basically has 2 different versions of the database. The older version had a field called CCNUM (credit card #) that was a basic 16 character field. The newer version replaced that field with a field called CCPTR, which was a 100 character field that represented a card pointer (encrypted value for the actual credit card number).</p> <p>The problem here is everytime I have to switch back and forth between 2 datasets that have these different table structures, SSIS blows up and I have to go in and manually refresh the metadata.</p> <p>My question is, is there anyway I can have SSIS dynamically look for one of these fields at runtime, and based on which one is there, load the correct data into the correct table structure in SQL?</p> <p>Forgive me if this has been asked before. I am still fairly new to SSIS and I tried searching for this answer but to no avail.</p> <p>Thanks,</p> <p>Mark</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload