• shank-130731 (12/27/2012)


    I have 2 SQL servers: SQL_Local and SQL_Remote. I have SSIS on SQL_Local. I want to transfer records from SQL_Remote.Customers into SQL_Local.UPS only when a record is inserted into SQL_Remote.Customers.

    In SSIS, the only DataSource options I see are a table or a view. I created a view on SQL_Remote and mapped to SQL_Local.UPS - no problem.

    My problem is how do I trigger the local SSIS package to transfer the most recent record inserted into SQL_Remote.Customers?

    In my mind, the most practical way is to create a data source created on a trigger for table SQL_Remote.Customers, but I don't see how to create that datasource in SSIS either.

    Your datasource can also be a SELECT statement -- this is probably how I bring 95% of my data from the source (as opposed to a view or table).

    It depends upon how fresh you need the copy of the data on the SQL local server to be. If updating once a day is okay, I'd just schedule a SQL Agent job each night to run the SSIS package to bring over the new records. If you need it hourly have it run hourly -- of course this also depends upon how long it takes to bring over those new records. (If it takes two hours to bring over the new records, then an hourly update probably wouldn't be the way to go)

    I hope that helps a little,

    Rob