Solved

2-way synchronization between 2 SQL tables on different servers

Posted on 2008-06-18
1
534 Views
Last Modified: 2009-07-29
In searching, I've seen similar questions, but not specific to my situation. I have a SQL 2005 Database with a Access front-end. I would like to make some of the data available to people via a web site. The issue is that I don't want the web server hitting the same box that holds the in-house SQL database. For security, I'd rather have that on a different box, which I have. The data could be modified by either the web client or by a user using the front-end Access database (could be modified on either SQL Server). So I have 2 questions:

1) I havn't spent much time with Replication and I know some people like to stay away from it. What do I use in SQL to do this and are there any issues I should be aware of. I assume Merge Replication would be the way to go, but I'm conserned about simultaneous edits to the same record. What happens in a replication conflict? Do I need a Merge Replication Publication and Subscription on both servers to do this?

2) Is this the best way to handle this situation? What do you folks do? Use one database server for both web users and in-house users? Am I overly security paranoid and just asking for trouble with Replication? A quick upgrade to 2008 is an option, does that help me any in regards to this problem?

Thanks in advance. I'm looking more for advice and a proper direction, so please excuse all the questions.
0
Comment
Question by:bandriese
1 Comment
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 21819332
>I assume Merge Replication would be the way to go
yes, it's the easiest.

>but I'm conserned about simultaneous edits to the same record.
that's the replications conflict resolution mechanisms you need to configure, to indicate which update will "win".
note: having 2 replicated databases or 1 database is mainly the same "problem", just that when person B updates the same record 1 second later than person A, the changes of person A are overwritten.


do you really expect 2 persons to edit the same record (I mean, from the "business" model?)

you could of course to your home-made solution, but it will end up with the same tricks/hacks for the same problem the replication exists...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now