Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to get Synchronisation between two SQL Servers to perform better

Posted on 2008-06-20
2
Medium Priority
?
235 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 51

Accepted Solution

by:
Ted Bouskill earned 1000 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

Technology Partners: 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

In this article, we’ll look at how to deploy ProxySQL.
What we learned in Webroot's webinar on multi-vector protection.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

721 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