We are using SSIS to transfer the contents of 3 tables from ServerA to ServerB
ServerA is located inhouse, ServerB is in a datacenter. There is VPN connectivity from ServerA to ServerB, and vice-versa. For security reasons, we are looking to remove the ability for ServerB to “see” ServerA
The current SQL select statement goes something like this:
SELECT * FROM ServerB.OrderTable WHERE NOT IN ServerA.OrderTable
(i appreciate the syntax is off)
These records are then inserted on ServerA.OrderTable (the table is identical)
This works great- only transferring records that are not in ServerA
However, this requires ServerB to be aware of ServerA What I propose to do is put a “Transferred” bit column on each table, and loop through each record, setting Transferred to true.
That way, the above mentioned SQL statement could be changed to something like:
SELECT * FROM ServerB.OrderTable WHERE Transferred = 0
My question is, how to go about doing this? I have been advised that a foreach loop container could do this, but I can’t find that anywhere... Could someone point me in the right direction