Solved

SQL 2005 and file replication between two live servers.

Posted on 2011-02-14
6
381 Views
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.
0
Comment
Question by:jimmylew52
  • 2
  • 2
  • 2
6 Comments
 
LVL 12

Accepted Solution

by:
NormanMaina earned 250 total points
ID: 34890234
0
 
LVL 12

Expert Comment

by:NormanMaina
ID: 34890235
0
 
LVL 1

Author Comment

by:jimmylew52
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.
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 18

Assisted Solution

by:chrismc
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.
0
 
LVL 1

Author Comment

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

Expert Comment

by:chrismc
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.
Cheers
Chris
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

This article describes some very basic things about SQL Server filegroups.
Creating and Managing Databases with phpMyAdmin in cPanel.
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…

707 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

15 Experts available now in Live!

Get 1:1 Help Now