SQL 2005 and file replication between two live servers.

Posted on 2011-02-14
Last Modified: 2012-06-27
I have two MS sql 2005 servers that I need the data synchronized between them. Both will be live at all times. There will be some files that will have to be synchronized between the two servers also.

How do I go about accomplishing this task. Mirroring and log shipping will not work due to both server databases having to be live at the same time.
Question by:jimmylew52
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
  • 2
  • 2
LVL 12

Accepted Solution

NormanMaina earned 250 total points
ID: 34890234
LVL 12

Expert Comment

ID: 34890235

Author Comment

ID: 34890823
Thank You for your input, but, we tried Merge replication once beforeand and the unique identifier it inserted destroyed our database.

I need a different option.
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

LVL 18

Assisted Solution

chrismc earned 250 total points
ID: 34895085
Changing the Id's to GUID's instead of ints is the proper answer as the statistical probability of duplicate keys is miniscule and that's what they were designed for.

with Guids in stead of ints, Merge Replication would work.

Without that, you will need a way to ensure that the id's don't clash yourself, for example by prefixing adding 1000000000 to ids from one server and 2000000000 to the other to make sure you don't get duplicates.

Author Comment

ID: 34897561
not sure what you mean by "changing the id's to GUID's"
LVL 18

Expert Comment

ID: 34898354
Guids means globally unique id's
It uses a combination of time and some hardware related I'd to generate a seemingly random 16 character I'd.
SQL has it as an actual data type.
It would mean changes to your app but it will be the correct solition of you need to use merge replication. Anything else will require more management in the long term.

Featured Post

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
denied execute as 13 55
Displaying images within Access Form 6 67
exchange 2010 Dag failed 3 60
HIghlights of SSIS? 3 40
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
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…

738 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