MakkyNZ
MakkyNZ

Reputation: 2257

Strategy for transferring db data between sql servers

I would like some advice on the best approach for transferring DB data from one SQL server to another.

This is my scenario:

What would be the best method for transferring these orders from our front end to our back end SQL Db?

I’ve looked into SQL replication - but the problem I’ve come across is that I won’t be able to set the "HasBeenTransferred” bit flag reliably using this method and this is critical for the system to work

Any help would be greatly appreciated.

Upvotes: 2

Views: 707

Answers (2)

RPM1984
RPM1984

Reputation: 73112

If you need to data transferred immediately, use either SQL Server Continuous Replication, or a trigger which executes a SPROC, which does populates the data in the other server via a linked server call.

If you don't need it immediately, use a SQL Server Job, which synchronizes the data at a given time interval.

Upvotes: 0

bobs
bobs

Reputation: 22184

You should probably still consider replication for this. Other than setting the flag, your scenario sound perfect for replication. And, you can customize the replication so that the flag can be set. Although, if you use transactional replication, the information could transfer before anyone can evaluate the "HasBeenTransferred" flag.

Upvotes: 2

Related Questions