Solved

SQL Server replication - Cancel the snapshot data update on subscriber

Posted on 2011-02-21
2
361 Views
Last Modified: 2012-05-11
Hi!

I had some trouble with a transactional replication and I had the bad idea ( so far it seems ) of reinitializing the synchronisation.

The snapshot agent ran, and now it wants to apply the snapshot data on the subscriber.

The problem is with my setup...

I have a workstation A and workstation B that use merge replication.  There is also a transactional replication between workstation A and server C.

Now the distribution agent wants to drop my table and repopulate it, but it cannot be done because of the merge replication already going on..  and it would screw the setup as we need to setup merge then transactional replication in that order.

I have backups of all the tables on each server/workstation if that can be done this way ( by restoring the distribution database for example ).

So... is there any way to cancel the application of the new snapshot data or to trick it to think it's been done?

Last time this happened to me I simply went to the workstation location and redid all the configuration from the beginning since it's not very long and there is not much data.  However, this time, this is a remote location and we cannot do it remotely for internal office/political reasons.

Thanks for the advices!

Francois

0
Comment
Question by:Francois_Tremblay
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

Accepted Solution

by:
TAB8 earned 500 total points
ID: 35890503
Transactional replication needs to apply the snapshot there is no way around it ..  so drop your merge "that you dont need to apply a snapshot to" create your transactional , then create your merge with the do not initilise option
0

Featured Post

Raise the IQ of Your IT Alerts

From IT major incidents to manufacturing line slowdowns, every business process generates insights that need to reach the people required to take action. You need a platform that integrates with your business tools to create fully enabled DevOps toolchains.

You need xMatters.

Question has a verified solution.

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

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

719 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