?
Solved

SQL Server Merge replication with no initial snapshot option

Posted on 2007-03-26
2
Medium Priority
?
732 Views
Last Modified: 2012-06-27
Hi,

I am trying to setup a SQL Server 2005 merge replication without the initial snapshot.

The data on both the subscriber and the publisher is currently in an identical state and I have inherited a script that creates the publication.  After running this script, the publication is created, I then create the subscription (ensuring I do not tick the Initialize subscription checkbox).

This subscription then gets created. However when I look at the replication monitor on the publisher, there is an error, stating the initial snapshot for the publication is not yet available.

I remember that when creating a publication using the MSSM Studio wizard, there is an option (checkbox) questioning whether to create the snapshot immediately.

Therefore my thinking is that within the publication script I inherited this "create the snapshot immediately" option has not been turned off.

Can somebody please tell me how to turn off this option using t-sql (or a script) or is there a property I can change once the publication has been set up.

(apologies if the above seems muddled, but am fairly new to replication and still getting my head around it ;-)

Many thanks
...Steve
0
Comment
Question by:swtiley
2 Comments
 
LVL 16

Accepted Solution

by:
rboyd56 earned 2000 total points
ID: 18794400
You still have to run the snapshot agent. The snapshot agent crates many of the system objects that are used by merge replication. If you do not run the snapshot then these objects will not get created so they cannot be replicated to the subscriber.

Check out this topic in Books on LIne:

ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/rpldata9/html/7d4c67e4-d683-4ba5-81bd-e6ce4f7489bf.htm
0
 
LVL 1

Author Comment

by:swtiley
ID: 18806316
Thanks for help rboyd56
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question