Solved

How to get Synchronisation between two SQL Servers to perform better

Posted on 2008-06-20
2
189 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:
tedbilly 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how the fundamental information of how to create a table.

743 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

13 Experts available now in Live!

Get 1:1 Help Now