Replication: SQL Server 2000 - Part 2 - Getting Started: Step-By-Step, Cont'd.
(Page 3 of 7 )
Creating Publication
- Right click on the PUBS database and click on New/Publication, which will run the Publication wizard.
- Select the PUBS database as the Publication Database

- Chose Merge Replication as the replication type.

- Specify what types of Subscribers will subscribe to this Publication. In this example I chose SQL Server 2000 as the Subscriber types.
- Chose the ‘Object type’ you want to Publish. In this example I chose to publish all types of objects.

- Go to all the table article properties (click on the ellipses) and select the Identity Range tab and check the Automatic Identity Range Manipulation check box and set Publisher and Subscriber range to a desired value. In this example, I will set the Identity range value as 1500. This is a tedious process; hence it is necessary to automate this process. I will use the following system stored procedures to set the identity range explicitly:
- Sp_adjustpublisheridentityrange
- Sp_addmergearticle
Next: Code: Stored Procedure >>
More SQL Server Articles
More By Mahesh Kodli