How to create a merge publication (Transact-SQL)
To create a publication (merge)
- Execute sp_replicationdboption to enable publication of the current database.
- Execute sp_addmergepublication to define the publication.
- Execute sp_addpublication_snapshot to create a Snapshot Agent, set the publication agent_id value, and place the schema and data into the replication working directory.
- Execute sp_addmergearticle n times to define each article in the publication.
See Also
(c) 1988-98 Microsoft Corporation. All Rights Reserved.