Solved

SQL 2005 and file replication between two live servers.

Posted on 2011-02-14
6
382 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
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

 
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

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.
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…
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…

911 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

23 Experts available now in Live!

Get 1:1 Help Now