Steps for Configuring Publications
Use these steps to configure publications for merge replication.
July 18, 2005
To configure each publication, start in Enterprise Manager on the Publisher server (SQLServer1 in this case) and complete the following steps:
Select Replication, Publications. Right-click, then choose New Publication.
The Create Publication wizard appears. Click Next.
On the Choose Publication Database screen, select the database (ClientDB in this case), then click Next.
If the Use Publication Template screen appears, select No, I will define the articles and properties, then click Next. On the Select Publication Type screen, choose Merge publication, then click Next.
On the Specify Subscriber Types screen, select only Servers running SQL Server 2000, then click Next.
On the Specify Articles screen, in the Show column in the left panel, make sure that only Tables is selected and verify that Show unpublished objects is selected.
In the right panel select the tables that you want to replicate.
If the table has an IDENTITY column, as Figure A shows, click the elipses (...) button next to the article and click the Identity Range tab. Then select Automatically assign and maintain a unique identity range for each subscription.
Enter sufficiently large values in the Range Size at Publisher and Range Size at Subscriber text boxes. (For example, based on the projected growth for the table that has about 1,500,000 million rows, I entered 10,000,000 here.)
In the Assign a new range when the percentage of values is used text box, type 99, then click OK.
After you've selected all articles and modified their properties, click Next.
If the Article Issues screen appears, make sure that only one issue, uniqueidentifier columns will be added to tables, exists. If there is an issue related to IDENTITY columns of one or more tables, return to the previous screen and edit the article properties as I described. If there is only one issue in the list, review the description in the Article Issues screen, then click Next.
On the Select Publication Name and Description screen, type the publication name. Note that you can't later change the assigned publication name. Enter a meaningful publication description, then click Next.
On the Customize the Properties of the Publication screen, choose Yes, I will define data filters, then click Next.
On the Filter Data screen (without any selections), click Next. (You can enter criteria for filtering rows here.)
On the Allow Anonymous Subscriptions screen, select No, allow only named subscriptions, then click Next.
On the Set Snapshot Agent Schedule screen, accept the default options. Ensure that Create the first snapshot immediately is selected, then click Next. (Or you can schedule to run Snapshot Agent later, at a more convenient time.)
On the Completing the Create Publication screen, click Finish, and close any messages that appear.
In the right panel of Enterprise Manager, watch the Replication Monitor, Agents, and Snapshot Agents progress as the snapshot is generated.
Repeat steps 1–20 for all publications.
About the Author
You May Also Like