Quantcast
Channel: SQL Server Replication forum
Viewing all 4054 articles
Browse latest View live

sp_addmergesubscription Publication does not support the nosync type!

$
0
0

Hi

I've move databases with master, msdb with all replication settings (generate script) to new server.

now I execute replication script which I was created in old server until to reach sp_addmergesubscription procedure.

when I execute this procedure, I'm facing this error :

Msg 20086, Level 16, State 1, Procedure sp_addmergesubscription, Line 471
Publication '002-Base' does not support the nosync type because it contains a table that does not have a rowguidcol column.

it works on old server before this!!! where is the problem and how to solve it ?

thanks in advance


http://www.codeproject.com/KB/codegen/DatabaseHelper.aspx


Transactional Replication treating updates as Inserts

$
0
0
Hoping someone can give me some options on this one as it is driving me crazy

Transactional Publication publishing a single table (56m rows)

Table is two column (date and id) primary key (4 column table (value and archive flag)

No Filter columns, no filter rows 

@ins_cmd = N'SQL', @del_cmd = N'CALL usp_NoAction3', @upd_cmd = N'SQL'

usp_NoAction3 is an empty SP with a single print command in (no Action taken)

Subscriper is a pull subscription

Publisher ServerA is where all data is entered

Subscriber ServerB is a reporting layer, data is not meant to be manipulated and I can't find any evidence that anyone is manipulating it (although i can't rule it out)

Problem we are having is when certain historic records are updated on ServerA we get a key violation on the subscription where it is attempting to insert a new record (rather than performing an update)

insert into "tbl_data" values ({ts '2015-05-08 01:52:24.000'}, '2720YC0100G6', 3.6000000e+002, NULL)

Cannot insert duplicate key row in object 'tbl_Analyt_data' with unique index 'PK___1__13'.


Checking the table on both servers the record exists on both tables with the same ID and the same timestamp.

The only difference is the value field has been updated from a value of 400 to 360

The datestamp on the field is 08-05-2015 01:52:25.000 on both tables so it was originally inserted fine.

Anyone care to offer a hypothesis as to this behaviour?

Cheers

Smitty


MCDBA, MCAD, MCITP, MCTS

Problem to execute sp_adddistributor proc which facing error!

$
0
0

Hi

I've moved my main databases with master and msdb databases to new server (with the same name and sql server sa password as old server).

to move relication settings, I've generate script for replication configuration, but when I want to execute script on new server, in the first line :

use master
exec sp_adddistributor @distributor = N'MyNewServerName', @password = N'myPassword', @from_scripting = 1
GO

I'm facing this error :

Msg 15297, Level 16, State 1, Procedure sp_addlinkedsrvlogin, Line 91
The certificate, asymmetric key, or private key data is invalid.
Msg 15185, Level 16, State 1, Procedure sp_addlinkedsrvlogin, Line 98
There is no remote user 'distributor_admin' mapped to local user '(null)' from the remote server 'repl_distributor'.

Does something wrong ?

how can I solve this problem ? thanks


http://www.codeproject.com/KB/codegen/DatabaseHelper.aspx

How can i remove the publication in sql server 2005 ?

$
0
0

Hi All,

We have one issue with Replication. we configure the replication between A and B servers... A is Publisher server and B is the subscriber server and we have the distributor database is on B server. last week we migrated the B server databases to another new server and then de-commissioned the B server. Now the replication database log file is growing on A ( publisher ) server. we are going to remove the Publication, but we got the error while remove the Publication.

Please share your suggestions to remove the publication and resolve the logfile growth.

Thanks In Advance,


rup

Local subscriptions is empty when i move databases with replication settings to new server!

$
0
0

Hi

after a lot of efforts I've moved databases with master, msdb to new server and execute replication configuration script which I was generated in old server but the 'Local subscriptions' is empty whereas 'Local Publications' exists!

Also when I launch replication monitor and click on each publication, all it's subscriptions have 'Unintialized subscription' status. Should I reinitialize all subscriptions for each publication (or something else solution) to accomplish my task?

does something wrong ?

thanks in advance


http://www.codeproject.com/KB/codegen/DatabaseHelper.aspx

SQL Server 2014 Replication with Default Instance W2012R2STD

$
0
0

Our environment has VMs hosting SQL Server 2014 12.0.4100.1 with one in Azure.  Each VM has just the SQL default instance and no named instances.  I am setting up a uni-directional transactional replication to the VM in Azure.   

Issue:  When attempting to bring up the Configure Distribution Wizard an error is returned that says:  "SQL Server replication requires the actual server name to make a connection to the server.  Specify the actual server name, 'W2012R2STD'. (Replication.Utilities)".

I cannot connect to this server name b/c a default instance has no name.  Possible resolution is to create a new named instance on this server to act as the distributor.

Move merge replication database to new server without reinitialize subscriptions

$
0
0

Hi

After a lot of efforts, I've moved my customer replication databases to new server as follow :

In Old Server :

1. Backup main database

2. Backup master database

3. Backup msdb database

4. Backup distribution database

5. Generate script from replication configuration

In New Server :

1. Restore main databse

2. Restore master database

3. Restore msdb database

4. Restore distribution database

5. execute replication configuration script

6. Run this script :

ALTER SERVICE MASTER KEY FORCE REGENERATE

7. Then test a linked server connection (which have successfully worked)

My problem is that all subscription status is 'Uninitialized Subcription' when I launch replication monitor.

can anybody help me how to solve this problem and continue replication from this new server without reinitialization?

Note : The old and new server have the same os (windows server 2012 r2) and Sql Server 2012 with the same sa password.

thanks in advance


http://www.codeproject.com/KB/codegen/DatabaseHelper.aspx


How to mark reinitialize subscriptions without snapshot?

$
0
0

Hi

we have successfully moved replication databases with configuration from old to new server which I described in this thread.

it's seem everything is ok, but the only step to close this process is to reinitialize subscriptions. but because all subscriptions have working with replication before moving to new server I think it does not need to reinitialize from snapshot again!

I'm looking for a way to mark all subscriptions to initialize without snapshot. can anybody help me how to accomplish this?

thanks in advance


http://www.codeproject.com/KB/codegen/DatabaseHelper.aspx


merge replication processing order of UPDATEs, INSERTs and DELETEs

$
0
0
I can set the order of Merge Replication? I've read that the order is Delete -> Update -> Delete. I can change it? If so, how can it impact in my replication?

Problem to reinitialize subscribtions after moving to new server

$
0
0

Hi

we have successfully moved replication databases with configuration from old to new server which I described in this thread.

to avoid any unwanted errors during synchronization (for test), I've removed one of subscriptions and create new subscription from scratch via UI, but after the first synchronization (for initialize snapshot), I'm facing this error :

The schema script 'OrdDoc_4.sch' could not be propagated to the subscriber. (Source: MSSQL_REPL, Error number: MSSQL_REPL-2147201001)
Get help: http://help/MSSQL_REPL-2147201001
Could not drop object 'dbo.OrdDoc' because it is referenced by a FOREIGN KEY constraint. (Source: MSSQLServer, Error number: 3726)
Get help: http://help/3726

after a lot of search, find out which I create new empty database in subscriber, then drop and recreate subscription and start synchronization. it works but only those tables which exists in that publication have been transferred!!!!!!To workaround this problem, after first initialization, I've restored subscriber backup and again start synchronization, but I'm facing this error :

The subscription to publication '05-Ord' could not be verified. Ensure that all Merge Agent command line parameters are specified correctly and that the subscription is correctly configured. If the Publisher no longer has information about this subscription, drop and recreate the subscription.  (Source: MSSQL_REPL, Error number: MSSQL_REPL-2147201019)
Get help: http://help/MSSQL_REPL-2147201019
The subscription could not be found. (Source: MSSQLServer, Error number: 20021)
Get help: http://help/20021

Is there any way to initialize subscriber with full database snapshot(or something else to solve this problem)?

thanks in advance


http://www.codeproject.com/KB/codegen/DatabaseHelper.aspx


pull replication error

$
0
0

hi,

one of my coworker setup a bunch of pull transactional replication.  The snaps for this publication is compressed and is stored on the publisher+distributor.  There are 30GBs of disk space atm. all the publication are working fine except for one.  I keep getting the following error

Replication-Replication Distribution Subsystem: agent ABCDE39-pubname-subscribername-104 failed. The process encountered operating system error '՝'.

When i look at the replication, I see:

Command attempted:

if @@trancount > 0 rollback tran (Transaction sequence number: 0x0001A1AD000337A201D700000000, Command ID: 3275)

Error messages:

  • The process encountered operating system error 'ؓ'. (Source: MSSQL_REPL, Error number: MSSQL_REPL20034) Get help: http://help/MSSQL_REPL20034
  • There is not enough disk space on the disk.  (Source: MSSQL_REPL, Error number: MSSQL_REPL112) Get help:http://help/MSSQL_REPL112
  • The process encountered operating system error 'ؓ'. (Source: MSSQL_REPL, Error number: MSSQL_REPL1779) Get help: http://help/MSSQL_REPL1779

at first I thought that the compressed cab file would be stored in the temp directory on the subscriber and that doesn't have a lot of space so I changed the system environment variable from c:\windows\temp to v:\temp.  This shut it up for a while but then the message started to show up again.

I have been monitoring the drive where repldata is stored but i don't see it reducing in size.  Does replication not even bother with using the disk space if the size isn't big enough, like the restore function?

if this has to do with the amount of free space where repldata reside, if I change its location, do i need to stop replication first or will it pick up that info automatically?

any help would be greatly appreciated.

thx

Merge Replication - multi hop possible ?

$
0
0

Hi,

I was wondering if the following would work:

server 1 <----MR----> server 2 <----MR----> server 3

Thus a change would first propagate to server 2, then propagate to server 3.

At the moment in my test setup it is not working.

Thanks,

Olivier

Replication monitor measurements

$
0
0

Does anyone know what is the measurement for Latency on the replication monitor?  Is it hr:mm:ss, or is it mm:ss.ms?

I see 

  • Performance = Critical
  • Latency = 2:41:52
  • Last Synchronization = 6/2/2015 9:02:21 AM  (current time)

Is the Latency 2 minutes 41 seconds behind or 2 hours 41 minutes behind?

Upgrade SQL 2012 with replication to SQL 2014

$
0
0

We have a SQL 2012 enterprise which has AlwaysOn  and replication configured and running. It is a 4 node active-passive and the distributor on a separate physical server and subscribers also on separate servers as well. They all are SQL 2012 enterprise.   I like to upgrade them to SQL 2014.       Based on the 2014 SQL upgrade knowledge base (https://msdn.microsoft.com/en-us/library/ms143699.aspx?f=255&MSPPError=-2147217396). The disbributor has to be higher or equal to the publisher db server.    With that in mind, I would upgrade the distributor SQL server first to SQL 2014.  Then I would upgrade the publisher database server (the four nodes) next.    This article also mentioned that I need to make sure nobody is making data changes on publisher dbs before I run the upgrade.  Is this true and why?

The reason I am second guessing this requirement is that while I am upgrading the distributor, if the distribution db becomes unavailable for a short period of time, that would be ok and once the upgrade is done, all the data changes would be read by the log reader again. Isn't it what it supposed to do?     I would think it is just like the situation when I am doing a reboot on the distributor database server.  

Please explain why I need to stop users making data changes to the publisher dbs when I upgrade SQL 2012 replication to SQL 2014 as this would imply a scheduled downtime is required.

Thanks in advance,

OD


Ocean Deep

SQL Server to OpenEdge ProgressDB Replication

$
0
0

Hello,

I have SQL Server and Porgress Database and we want SQL Server databse near real time replicate to Progress Database. So is there any way to replicate my SQL Server Databases to ProgressDB Databases?

Can SQL Server Replication supports this requirement?

Thanks for everything. 


Applying Service Packs and Cumulative Updates To Transactional Publication Subscribers Before Distributors/Publishers

$
0
0

Hi All,

I know that every Cumulative Update and Service Pack always contains in the "Notes" section, "Hybrids Deployment" sub-section, links to best practice articles which ask that in a replication topology environment, that patches should be applied to the Distributor first, then the Publisher, and then any Subscribers.

What I want to know is what's the real risk here if you apply them out-of-order (e.g. subscribers first)?  It seems also according to MSDN article aboutupgrading replicated databases (https://msdn.microsoft.com/en-US/library/ms143699.aspx), that "A Subscriber to a transactional publication can be any version within two versions of the Publisher version. For example: a SQL Server 2008 Publisher running can have SQL Server 2014 Subscribers; and a SQL Server 2014 Publisher can have SQL Server 2008 Subscribers."

We have many subscribers to a single publisher and single distributor, so it would seem less risky to apply to a subscriber first.  Even if it breaks, than what's the worst-case scenario, reinitialization of the subscription?  We can live with that as we have many more subscribers to absorb the work-load.

If anyone can provide examples where this approach has not worked, or even better, references to documentation providing details about the inherent risks with not doing it in the right order, I would really appreciate it.  I'm trying to "prove out" best practices, without having to wait until one of them fails to do so.

In the past, I have tried this approach and it has worked, but that has been in a DEV/TEST environment, and also for CUs where replication components were not part of the patch.

Regards,

Diane.


Diane

cant create snapshot

$
0
0

we have a database which was replicated with merge replication. we added a few table and a field to another. when I try to create the snapshot I get:

An error was raised during trigger execution. The batch has been aborted and the user transaction, if any, has been rolled back. 

I have detached and re-attached the db, removed all triggers from the tables, and still I cannot recreate the snapshot

the last step before the error as listed in the monitor is generating all procedures for all table articles 49%

any ideas?

thanx

david


???


Automation of SQL Server Transactional Replication in SQL 2005

$
0
0

Hello,

We have Transactional replication set up between two of our servers , both SQL 2005, 

Publisher would be an OLTP and Subscriber would be Reporting server where Distr is on Publisher itself.

As of now, only method to make sure my replication works, which i am only aware is using Replication monitor, which tells the status is OK or not.

We do not want to be depending  only on this, so can anyone please suggest a much better way of monitoring the on going Transactional replication between two.

Means , if there is a way i can use some automation to send me a alert of there is latency or replication gets broken, instead we going manually checking the status of replication.

Thanks in advance.

Using replication for central management

$
0
0

I'm trying to come up with some good ways of centrally managing several SQL Server instances potentially spread over several physical boxes and virtual machines.

One thing that is often useful is a set of common stored procedures and functions. You could think of this as analagous to a dll used my many applications. I can see a place for both a general functional library (for things like splitting strings on commas, a table of integers, a calendar table, etc) as well as an administration library (for things like index maintenance, backups, etc). Often these routines cannot be called from anything but the local instance due to the nature of the operations involved, so they must be created on each instance.

It would obviously be advantageous to ensure the consistency of these libraries across the servers that might make use of them. A database on each instance to contain the procedures and functions (a Library database) could have a dba schema and a dev schema containing the appropriate objects. This database could be created  and modified on a single server and then the objects pushed to all other instances by way of replication, ensuring all library databases are always up to date and in synch.

Does anyone use a model like this? Does anyone have another suggestion for the management of shared functionality over multiple instances?

cdc job

$
0
0

i have enabled CDC for a database,  it was running smooth,,   replication is slow , when i sp_who2,   CDC job is running but it is in suspend status and "WAITFOR" command,   how to trouble shoot ?  checked space and no issue, enough space for all dbs

Thanks

V

Viewing all 4054 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>