Reputation: 988
Let's say I have two Databases like so :
DatabaseA
create table Table1 ( field1 int, field2 int, field3 int )
DatabaseB
create table Table1 ( field1 int, field2 int )
Our old application uses B and must continue to do so. We are developing a new application that is going to use A. What is the best way to make sure all changes in A:Table1 are replicated in B:Table1 ?
Here are a few things to consider:
selects
in B:Table1, no need for the syncronization to go both ways.Here are the options I have considered :
application
that will replicate the changes in Bstored procedure
to replicate the changesWhat are your toughs on this ?
Did I miss another option ?
Have you ever done something similar ?
Is there a software (free or not) that might do the job ?
As always, thank you all for your time and your input.
Upvotes: 2
Views: 3705
Reputation: 32737
What do you think about transactional replication? You have the ability to replicate only certain columns and can write custom stored procedures to do the inserts, updates, and deletes. It's asynchronous too, so your new application shouldn't be bogged down by it.
Upvotes: 0
Reputation: 50855
You have lots of options here...
In the end you'd need to read up more on each and decide which best fits your needs. It's going to be a trade-off between reliability and performance.
From the information in your question alone it sounds like Service Broker is going to be the best fit. You can still use triggers to invoke the broker, which then responds asynchronously.
Upvotes: 2