title: Transfer several joined tables from one database to another using SSIS?
body: <p>I have several tables in my database A which are interconnected via foreign keys and contain values. These values need to be transfered to another database B, all dependencies must be preserved, but the actual (numeric) values of primary and foreign keys are, of course, of no importance.</p>
  
  <p>What would be the easiest way to fulfill this task using SSIS?</p>
  
  <p>Here are the approaches I tried but with no much success:</p>
  
  <ol>
  <li><p>I implemented a really very sophisticated view with flattened data and a lot of redundancy in the data and bumped into the problem how to split the data from this flattened view into several tables connected via foreign keys. This might be a solution, but I would personally prefer to avoid the data flatenning step if possible.</p></li>
  <li><p>I tried to copy the tables one-to-one using NOCHECK options to lift up the constraint checks and to perform insertion into PK and FK fields. This, however, confines my transfer to a complete new import, I cannot just "add" some new data to existing set of data that would be nice.</p></li>
  </ol>
  
  <p>Any other suggestions?</p>