SQL Database Replication

Posted on 4/13/2008 5:16:00 PM by sbeeh

Send to a Friend:

SQL Server 2005 provides three main types of replication: snapshot, transactional, and Merge.
Publications and Articles
Articles:
database object
Publication: SQL Server group’s articles from the same database in a unit called a publication.
Server Roles
You can configure a server as Publisher, Distributor, and/or Subscriber.

  • The Publisher is the original owner of the information that is published.
  • A Publisher is the only place where data can be modified.

 

The Distributor is responsible for managing the distribution database which stores replication status data, metadata, and, in some replication scenarios, the actual data that SQL Server replicates

A single database server instance can act as both the Publisher and the Distributor.

The server that then receives copies of the publication and provides the data to end users and applications is called the Subscriber.

Subscribers have a read-only copy of the database; in other configurations, you can update information in the Subscribers and replicate those changes back to the Publisher.

Push and Pull Subscriptions

With a push subscription, the Distributor copies the data to the Subscriber database. With a pull subscription, the Subscriber retrieves the data from the Distributor.

When your communication infrastructure has stable and permanent connections among replication servers, a push subscription offers the advantage of providing a central management point to all replication agents that manage the replication process. This results in less administrative overhead and easier troubleshooting procedures.

However, when the replication configuration includes many Subscribers, the distribution process for push subscriptions can tax the hardware resources of a Distributor.

Furthermore, servers or clients that connect on demand are better configured as pull subscriptions.

Replication Types

Snapshot replication the easiest replication type to understand because it is conceptually similar to a full backup and restore.

 

Transactional replication

It makes an initial complete copy of the data, and then all subsequent copies transfer modified data only.

Transactional replication uses the transaction log to apply to the destination data the same transactions performed on the source data. Because the same modifications are applied at both ends, the information is identical at the Publisher and the Subscriber.
This replication type is frequently used for transactional tables, such as an Order Details table in a retail database.

 

Merge replication

When your environment requires the ability to support simultaneous data modifications in the Publisher and Subscriber databases, merge replication offers a solution.

 

Replication Agents

SQL Server uses a group of programs called replication agents to execute the replication process.



Comments


1/3/2010 5:50:36 PM

Hey, i've been reading this blog for a while and have a question, maybe you can help... it's how do i add your feed to my rss reader as i want to follow you. Thanks.

quick loans

1/9/2010 1:20:57 AM

Just try to smile for about 2-3 mins then you can get back to work

payday loans

1/15/2010 3:19:10 AM

Good post. You often write a entertaining blog post. Thanks!

photographer edinburgh

1/16/2010 4:22:50 AM

Nice post. Truly fascinating and accurately composed post. Thanks!

rockwell sonicrafter

1/16/2010 7:45:34 AM

It is good to have an end to journey toward; but it is the journey that matters, in the end.

payday loans

1/18/2010 11:30:25 AM

Be glad of life because it gives you the chance to love, to work, to play, and to look up at the stars.

payday loans

1/20/2010 10:01:30 PM

Success is to be measured not so much by the position that one has reached in life as by the obstacles which he has overcome.

cash loans

1/26/2010 8:39:37 PM

I always wanted to write in my site something like that but I guess you'r faster Smile

payday cash advance

1/27/2010 12:32:38 AM

I would love to read more about this topic.Don’t stop blogging! It’s nice to read a sane commentary for once.

Winnipeg website development

1/27/2010 1:49:21 PM

I always wanted to write in my site something like that but I guess you'r faster Smile

payday cash advance

1/31/2010 6:46:20 PM

This is a cool screen idea ! It is very interesting indeed.Thank you for your info.i love to read all info.This article gives the light in which we can observe the reality.

Apex Professionals LLC

2/2/2010 10:11:05 AM

Believe in yourself, and the rest will fall into place. Have faith in your own abilities, work hard, and there is nothing you cannot accomplish.

Loans in Wisconsin

2/3/2010 11:28:42 PM

I was just wondering would you consider hosting a guest author on this blog..cause I see you started this blog and yet you really have no relevant articles posted here...so if you are interested in allowing someone else to write posts here let me know!

whiplash claims

2/3/2010 11:36:47 PM

I really appreciate posts, which might be of very useful for beginners in blogging as I am. I already have a small collection of blog posts and other articles, from which I step by step learn various aspects of life. Thank you for your resource.

lindsey vonn pictures

2/11/2010 6:49:09 PM

A good read, definitely worth a cut and paste. Thanks!

SEO

2/11/2010 10:17:14 PM

Cheers for the info. It was a good read.

bamboo floors

2/11/2010 11:01:53 PM

Forwarded this to some friends, appreciate your advice...

car finance sydney

2/11/2010 11:16:40 PM

I really appreciate posts, which might be of very useful for beginners in blogging as I am. I already have a small collection of blog posts and other articles, from which I step by step learn various aspects of life. Thank you for your resource.

contemporary abstract art

2/13/2010 7:29:14 AM

As a Noob, I am always seeking online for articles that can help me. Thank you

teeth whitening

2/17/2010 9:52:27 PM

Great info.I like all your post.I will keep visiting this blog very often.It is good to see you verbalise from the heart and your clarity on this important subject can be easily observed..We Provide you the best Online SEO Services with high quality.

Online SEO services

2/18/2010 8:52:48 AM

This is such a great resource that you are providing and you give it away for free. I love seeing websites that understand the value of providing a quality resource for free. It?s the old what goes around comes around routine.

Colon cleansers

2/18/2010 8:23:49 PM

I was very pleased to find this site.I wanted to thank you for this great read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post.

bookmarkme

2/18/2010 8:43:02 PM

Wonderful article,thanks for putting this together! "This is obviously one great post. Thanks for the valuable information and insights you have so provided here. Keep it up!"

bookmarking-site

2/18/2010 9:02:11 PM

Nice post to hang on..I really loved it the way of the stuff provided in this article..This has given very useful information..

bookmarksubmission

2/18/2010 9:15:37 PM

Excellent post.I want to thank you for this informative read, I really appreciate sharing this great post. Keep up your work…

bookmarkmysite

2/18/2010 9:50:30 PM

I really appreciate posts, which might be of very useful for beginners in blogging as I am. I already have a small collection of blog posts and other articles, from which I step by step learn various aspects of life. Thank you for your resource.

easybookmark