Merge Replication: Server Side

To setup merge replication in SQL studio perform the following:

  1. Right click "Local Publications"
  2. New Publication
  3. Next
  4. Select: [Server Name] will act as its own distributor.SQL Server will create a distribution database and log. NEXT
  5. Snapshot Folder (first time only) Create a folder and share it as "RepoData", copy the path including RepoData and paste it into "Screenshoot Folder". NEXT

  6. Choose the database that contains the data or objects you wish to publish: Select database, NEXT.
  7. Publication Type: Merge Publication, NEXT.
  8. Subscriber Types: SQL Server 2008 (or as appropriate).
  9. Select Tables and Views etc. as needed, NEXT.
  10. Filters: (NONE), NEXT, NEXT
  11. Agent Security: First Create a new user with a password that never expires (of course you could let it, but... maintenance). Give the user full controll of the share you created for the snapshot folder in step 5. Run under the following account: Process Account = [Created User] and give password. Use "By impersonating..." and click OK.
  12. Make agent user from 11 an owner of the database to be replicated.
  13. Create the publication... Finish.
  14. Security, Logins, [created user], right click, properties: User Mapping: Select "distribution" and check db_owner of distribution.
  15. Replication, Local Publications, [New publication created] right click properties
  16. Click Publication Access List, Add [created user]
  17. SQL Server Agent, jobs, [Newly created job], right click and start job.

You can check the progress in the Replication Monitor.

Merge Replication: Client Side

Pre-reqs: Make sure that the user has access to the publication: On the Publication Server SSMS, Replication, Local Publication, Archaeology - right click and select properties, Publication Access List, Add the new user if needed.

In local sql server

  1. [SQLExpress], Replication, Local Subscriptions, Right Click, New Subscriptions...
  2. Walk your way through the wizard answering questions as we did above (they are different, but much easier).
  3. Make sure the SQL Browser etc. services are running on the client and server
  4. Run the two scripts "CLR_INTEGRATION_ON.sql" and "ConcatAggr.sql" before you synchronize

  5. You MAY need to reboot (helped me once, but I didn't have to a different time).
  6. Run Mobsync, you should see the database listed and click sync all. That's it!

ArchaeologyProject/MergeReplication (last edited 2010-06-07 23:29:22 by scot-camtasia)