Solved

SQL 2005 and file replication between two live servers.

Posted on 2011-02-14
6
383 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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
As technology users and professionals, we’re always learning. Our universal interest in advancing our knowledge of the trade is unmatched by most industries. It’s a curiosity that makes sense, given the climate of change. Within that, there lies a…
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…

776 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