This issue occurred and I would like to know possible causes: During text file import the SSIS package created tables in the wrong database instead of writing in the correct tables in the correct database.
Details: There is an application which uses SSIS packages to import text files daily. Those file records are stored in tables in the application database and they are available until the next set of files is received, when the new records will replace them.
The records are also stored in another database where they are kept, with import date information.
The tables keeping the same information in the two databases have different names.
The SSIS package contains:
two database connections
a file connection
and a dataflow task with:
- one flat file Source
- one multicast
- two OLE DB destinations
Execution: dtexec
The package has been running for a year now.
There is NO table creation task. I connect the output of the multicast to already created tables in the database.
Issue: one time the SSIS package wrote the records in the storage database tables and, instead of writing in the application database tables, it created the application database tables in the storage database and wrote the records there.
What could have caused it?
Thanks in advance.