Chapter 2
Installing Replication
Let me live like a sky rocket.Let me colour the night sky for a singleinstant,burning with all ofmy being.And then burn out.— Yukio Mishima
This chapter focuses on installing replication on your SQL Server.Mostusers will only install replication on their SQL Server and then enableSubscribers.We’ll look at these two options and then look at how to set up your SQL Server to use a remote Distributor.After looking at theseoptions,we’ll look at Replication Monitor,which is the central point forreplication administration.In the process we’ll cover some ofthe moreadvanced options and settings.Following that,for those ofyou who arewizard adverse,we will look at the replication stored procedures that youcan use to carry out the same things.There are really two parts to installing replication:•Configuring your SQL Server as a Publisher/Distributor or a Distributor•Configuring your SubscribersRecall from Chapter 1 that a Distributor is a SQL Server that stores anddistributes transactions from your Publisher to your Subscriber.For mostreplication solutions,your Publisher and Distributor will be on the sameserver.For high throughput replication solutions,you should look at usinga remote Distributor.
Configuring your SQL Server as a Distributor
Configuring your SQL Server as a Distributor involves running a wizardthat creates a distribution database and several jobs in the msdb database.After your distribution database is installed,you are ready to create yourpublications.Let us walk through the wizards to understand how to config-ure your server as a Distributor.The first time you configure your SQLServer as a Distributor,open up Enterprise Manager (EM),connect to yourSQL server,and on the
Tools
menu,point to
Replication,
and thenclick
Configure Publishing,Subscribers,and Distributors
(Fig.2.1).You canbypass this altogether and merely click
Create and Manage Publications
,which is what most DBAs do.
Installing Replication
37
Leave a Comment