Joao: The problem is likely caused by the schema of the tables being different. Your OLE DB data source has its schema defined at design time and when you dynamically change tables at run time, you will get a schema mismatch. Without knowing your specific details, it is hard to make a recommendation, but you might have to do some processing in t-sql to move data to a staging table and then use SSIS to process from the staging table. That way the schema is a known element.
↧