Microsoft® SQL Server™ 2008 All-In-One Desk Reference For Dummies®
by Robert D. Schneider, Darril Gibson
VIII.5.3. Configuring Replication
Replication primarily occurs between two different systems (such as a server to a server or a server to a client), but it's also possible to replicate data between one database and another.
From a big picture perspective, replication is configured in three steps:
Configure the publisher and distributor.
Choose articles and create publications.
Configure the subscriber.
We discuss each of these in turn throughout the rest of this section.
VIII.5.3.1. Configuring the publisher and distributor
In the following steps, you create a database and then configure the replication distributor and publisher.
Launch SQL Server Management Studio (SSMS).
Choose Start
All Programs
Microsoft SQL Server 2008
SQL Server Management Studio.On the Connect to Server screen, click Connect.
Click the New Query button to create a new query window.
Enter and execute the following code to create a new database named ReplicateMe:
USE Master; GO CREATE DATABASE ReplicateMe;
Enter and execute the following code to create a table in your database:
USE ReplicateMe; GO CREATE TABLE Employee ( EmployeeID int IDENTITY(100,1) NOT NULL, LastName varchar(35) NULL, FirstName varchar(35) NULL, CONSTRAINT ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access