I am trying to write an SSIS package to transfer data from one database to another (straight copy, the tables that I am transferring to and from have the same structure). I am selecting a subset of the records (the ones that have been created or modified since the last time the package was ran) and I am trying to dump them to a sproc on the destination database which will determine which records need to be updated and which records need to be inserted.
How do I do I either do this inside a Data Flow object, or transfer the records out of the object so I can do it with an Execute SQL Task?
I don't want to use an OLE DB Command since that only works on one record at a time. The two databases are on different machines at different locations, and I'd like this package to take as little time as possible to run since I'm writing it to replace a DTS package that takes way too long to run (it deletes the entire contents of the destination table and re-copies over everything, changed or otherwise)