Solved

How to get Synchronisation between two SQL Servers to perform better

Posted on 2008-06-20
2
204 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
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…
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

777 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