Solved

How to get Synchronisation between two SQL Servers to perform better

Posted on 2008-06-20
2
220 Views
Last Modified: 2010-03-19
We originally had a web site which used a MS Access database.  Using SQL DTS we downloaded the database via FTP updated the master SQL Server 2005 database and then created a refreshed Access database and uploaded back to the website using FTP.  The entire process took about 40 mins.

We have come to replace the web site database with a hosted MS SQL 2005 database.  We have tried all sorts of approaches - replication, data comparison utliities, etc. all of which take at least 1.5 hours to do the same job !

Any suggested approaches to get the two databases to sync quickly and correctly without FTP (as this was a regular point of failure with the original approach).  For example, are there any compression products out there that will compress the traffic?


Thanks.
0
Comment
Question by:3Si_pnewman
2 Comments
 
LVL 51

Accepted Solution

by:
Ted Bouskill earned 250 total points
ID: 21836514
All you can do is minimize the traffic yourself.   Are you comparing row by row in tables?  If yes are you using CURSOR's?  They are performance killers.

Normally designers use a column with an update date that is modified with a trigger, you can then compare update dates to determine what rows need to be synchronized.

There is a good trick to determine if two rows are different with that date if you and need to be sychronized without sending the entire row to either database.  You use the CHECKSUM() function on all of the columns on each row, they compare them.

The key is that you only send the new or modified rows to each server, not the entire database for comparison.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

713 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