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
Solved

How to get Synchronisation between two SQL Servers to perform better

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
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…
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

840 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