all groups > sql server replication > july 2005 >
You're in the

sql server replication

group:

Which Replication Option???


Which Replication Option??? John Barr
7/7/2005 5:59:08 AM
sql server replication:
I am new to replication in SQL Server, and am investigating which option
would be best for my solution. I have a SQL Server (Server) on our network,
and another on in our DMZ. They have access to each other, and I need to
replicate a database from the SQL Server (Server) on my network to the box in
the DMZ. The database is updated frequently on the network and would need to
keep the DB copy in the DMZ up to date. Also, changes will need to be
replicated back from the DB in the DMZ to the DB on the network. Since the
updates would need to be readily available to either DB once made, I thoght
my best solution would be transactional replication. However, after reading
the BOL, I am thinking Merge replication would be better since the changes
can be updated continuously. Can anyone provide me some other insight into
Re: Which Replication Option??? John Barr
7/7/2005 7:31:06 AM
So, since both the publisher and subscriber will updated via users, use
Transactional Replication with immediate updating? Basically, the subscriber
will be updated via web application on a limited basis, meaning once every
10-14 days a few records will be updated. The publisher will be updated
constatly throughout the day via client application, meaning 1000's of
transactions daily from 100+ users.

[quoted text, click to view]
Re: Which Replication Option??? Hilary Cotter
7/7/2005 10:17:01 AM
For bi-directional replication between two sources where only one side gets
updated at any one time, or when you have perfect partitioning use
bi-directional transactional replication.

For bi-directional replication between two sources or more (but less than
10) where the majority of the updates originate on the publisher use
Transactional replication with queued updating subscribers.

For bi-directional replication between two or more sources where the
majority of the updates originate on the publisher and you have very well
connected always up links between the publisher and subscribers use
transactional replication with immediate updating. Keep in mind there will
be added latency to every subscriber originating transaction as it is
committed to the subscriber database.

For every other case use merge.

At this time, I would look at bi-directional replication and partition both
sides to reduce the possibility of conflicts. If you cannot guarantee that
you will ever have more than 2 servers, I would use merge.


--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
[quoted text, click to view]

Re: Which Replication Option??? Hilary Cotter
7/7/2005 10:50:22 AM
Yes, this sounds like an acceptable choice. The caveats are

1) Immediate Updating will add a GUID/uniqueidentifier column to each table
which you are replicating. This column will be called a MSrepl_tran_version
and it will cause insert statements without a column list to fail.
2) if your link or publisher goes down, all DML activity originating on the
Subscriber will hang for up to 20 s before rolling back with an server
access denied error message. Your app will have to handle this. On the plus
side you can configure your publication for queued failover so you can
manually failover your subscription to queued updating, and then fail back
to immediate updating when your publisher comes back online.
3) transactions originating on your subscriber will take longer to commit. I
have observed transactions originally taking 45 ms to commit, taking up to
145 ms to commit. Evaluate when you can live with this increased latency.
4) merge replication offers better conflict resolution, but with careful
design you can minimize the probability of conflicts occurring.

--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
[quoted text, click to view]

AddThis Social Bookmark Button