Solved

SQL 2005 and file replication between two live servers.

Posted on 2011-02-14
6
391 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
[X]
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
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
Get Actionable Data from Your Monitoring Solution

Your communication platform is only as good as the relevance of the information you send. Ensure your alerts get to the right people every time with actionable responses. Create escalation rules that ensure everyone follows the process and nothing is left to chance.

 
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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

687 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