I'm using SQL Server 2008. I have two databases called Adb and Bdb. There is a common table called commonTable. How can I update Adb database every 15 minutes using the data from the same table in Bdb?
Tell me more
×
Database Administrators Stack Exchange is a question and answer site for
database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.
|
|
||||
|
Without more specifics:
Now schedule that stored procedure every 15 minutes using a SQL Server Agent job. Isolation, concurrency, error handling etc. are all additional considerations, but most concerns should be minor if this is the only process that writes to You might also want to consider transactional replication - get rid of this concept of having to do anything manually, and also the idea that data could be up to 15 minutes out of date. |
|||
|
|

Bdbto completely overwriteAdbevery time? Or are you more looking to merge (e.g. delete rows in A that have been deleted in B, update rows that have changed, insert rows that have been added)? If the latter, how do you identify a row in the tables? Can you provide schema and indicate the primary key? – Aaron Bertrand Dec 11 '12 at 23:12