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

Msg 8115, Level 16, State 2, Procedure sp_MSsetupnosyncsubscriptionwithlsn, Arithmetic overflow error converting expression to data type nvarchar.

$
0
0

While subscribing from SQL 2012 to SQL 2008 R2 subscriber getting the error:

Arithmetic overflow error converting expression to data type nvarchar.

Msg 8115, Level 16, State 2, Procedure sp_MSsetupnosyncsubscriptionwithlsn, Line 237.

I had unsubscribed and tried resubscribing multiple times. Each time it tried to create subscription with new agentid and did not succeed. Looked like was running into issue mentioned in http://support.microsoft.com/kb/948622

Had to remove all publications, and replication completely and add it all back. This time I did not run into any issues. Could this be a bug which I was running into? 



Mark for Re-Initialization is breaking merge pull subscribers after adding new filter to article

$
0
0

I got situation where i have to add filter to existing articles in merge publication, After adding filter it asks for generating new snapshot and mark for Re-Initialization of subscribers.

Once this step is complete subscribers starts breaking while synchronization,

Adding new articles and generating new snapshot does not breaks subscribers. It only happens when we add new filter to any articles. It seems it is breaking while re-initializing subscribers only.

It gives different error

"snapshot is obsolete" and then starts throwing meta data mismatch error.

Merge Agent is configured using RMO for pull subscription using web synchronization.

Any help would be appreciated.


HiSam

SQL Server merge replication: When is data visible to the receiving side?

$
0
0

Hi,

I use merge replication to collect data from a number of agents into a central location (HQ), then process the data in the HQ.
The data that is being sent in comes from a number (4) different tables.
I'd like to be sure that processing (in the HQ) starts only when all data has been received.

Can anyone tell whether data is transferred in a single transaction or not?
If so, what is the isolation level of that transaction? Is data visible only when the transaction complete?
In SQL Server 2005 can I configure how a publication behaves?


BalintN

SQL Server Merge Replication

$
0
0

Hi all,

I had setup a merge replication but the ROWIDENTIFER ID make the application not working correctly (you can say not working at all) so I was asking about any workaround to avoid this ROWIDENTIFER ID or alternatives to SQL Server Merge Replication and achieve the same goal of using Merge Replication (allow read\update for both sites publication and subscriber)

Thanks In advance ...

Distribution Database in Production Database

$
0
0

I have a SQL Server 2008 R2 Database that needs to be published for replication.

In error I ran a script that sets up the distribution database. I put the name of the production database in the script rather than something like 'Distribution' this resulted in the Distribution tables etc. being created in the Production database.

I now have the problem that when I try to create the publication it fails with an error cannot insert a record into IHpublications Nulls not allowed. (not the exact text).

From what I have managed to find out is that a record is only inserted into here for non mssql databases.

I have disabled Distribution and re enabled it using the SSMS wizard and I now have a 'Distribution' database under System Tables in the master. I can publish tables from other databases on the server but not the one that contains the distribution objects such as IHpublications.

Does anyone know how to fix this? I needs to somehow undo what I have done.

I would be grateful for any help/suggestions.

Thanks

John

replication problem

$
0
0

hello everyone

I have 3server A , B & C.I want to Database in A and B replicate to C real time.Which replication method i can use?

I recently use transactional replication But in lost connection, someone forced to reinitialize the subscribtion.

is there any way to connect to subscriber it?self

sql server replication requires the actual server name to make connection to the server-sql server 2012

$
0
0

Hello all

i am trying to create new publication for replicationin my sql server 2012 but got error- sql server replication requires the actual server name to make connection to the server.

before this in my sql server 2008 i can just drop the server name and add new one. but the adding new server part is not supported in sql server 2012. anyone have any idea how to add new server name?

thanks.


kneeah

Question of Different Result on SnapShot Replication and Transactional Replication

$
0
0

Hi

in case of source server table fields value is insert/update on following datetime

KeyValueDateTime
1)A0110:05(Insert time)
2)A01A12:06(Update time)
3)B0211:05(Insert time)
4)B02A13:07(Update time)
5)C0212:05(Insert time)
6)D0312:05(Insert time)

1) Which record(s) is updating on 10:00,11:00,12:00,13:00,14:00, 15:00 by snapshot replication

2) Which record(s) is updating on 10:00,11:00,12:00,13:00,14:00, 15:00 by transactional replication

3) Would it be different? why?

Please help!

Thank you very much!

Francis SZE



SQL 2012, no Domain

$
0
0

Hi everybody,

I'm tryin to set up an Replication between two PCs. The one is an win7 Prof, with SQL Server 2012 Standard. This one is the publisher. The other PC is also a Win 7 Prof, with an SQL 2012 Express. It's the subscriber. The two PCs are not connected to an Domain, so they are only Workgroup Participants. This seems to be my problem: that the Agents gets problems to have the rights to exchange data. My question is, if it's possible to get this scenario running?

Thanks for your assistance

Generate Script

$
0
0

How do I generate script for a Push Subscription?

Replication

$
0
0
How to restore log file in replication?

Point publication to a new distribution database

$
0
0

Hi All,

We currently have our distribution database on the same server as our publisher.  I want to move to a 3 server architecture (1 for the publisher, 1 for the distributor and 1 for the subscriber due to load issues).  Do I need to completely rebuild my replication (multiple publishers and subscribers in place currently) to do so?  Can I gradually move over - i.e. point one publication at a time to the new distributor or can I only have 1 distributor for all publications on the same server?

Thanks,


Laura

Removing article from existing Peer to Peer replication

$
0
0

Hi Everyone,

We have a Peer to Peer replication in sql server 2008 R2.We want to remove an article from the replication.What is the safest way to that(through TSQL),
Will that cause any problem for the  replication operation?

Thanks


A.G

Change An IP Availability Group Listener (SQL Server)

$
0
0

Dear All,

Please Help Me,

I want to change IP Availability Group Listener (SQL Server) to Different IP

Is't possible to change  IP Availability Group Listener (SQL Server) ?

How to find which command/transaction caused replication agent failed?

$
0
0

Hi there,

Our production replication server was down and got the following error message:

String or binary data would be truncated. [SQLSTATE 22001] (Error 8152).

We restarted the agent, and it worked fine, did not get the same errors again.

Could you please let us know how can we get the command which caused this issue?

Regards,

Tracy


Bug in sp_dropmergefilter system stored procedure

$
0
0

I have merge replication with some filters. There is however one article that is used in 2 different filters so

sp_helpmergefilter for this article is returning 2 rows.

Now I want to remove both of these filters but I cannot do that without error:

Neither using sp_dropmergefilter neither using replication properties window.

In both cases when I run stored procedure or press Mark for reinitialization in GUI I have following error:

Msg 512, Level 16, State 1, Procedure sp_dropmergefilter, Line 167
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
Msg 3701, Level 11, State 5, Line 1
Cannot drop the procedure '[MSmerge_expand_29]', because it does not exist or you do not have permission.

The errors from GUI looks even uglier than from stored procedure.

I know the error is related to following peace of source code:

 --drop expand proc and nullify the expand_proc column in sysmergepartitioninfo 
    select @procname = expand_proc
    from dbo.sysmergepartitioninfo
    where pubid=@pubid 
            and artid = ( select art.artid from dbo.sysmergearticles art, dbo.sysmergesubsetfilters filter 
                                where art.name = filter.join_articlename and filter.pubid=@pubid and filter.artid=@artid)

However even if unhandled error is run it looks like sp is doing its job and that filter is removed and data is transferred properly. But in my opinion this bug should be fixed.

Transnational replication vs transnational updatable replication

$
0
0
Hi,

Can we add objects to subscriber in Transnational replication.

Can we update tables in subscriber in Transnational updatable replication.

How to resolve row mismatch in transactional replication ?

$
0
0

Hi All,

i get a row mismatch in transactional replication in SQl server 2008.

Error messages:
The row was not found at the Subscriber when applying the replicated command. (Source: MSSQLServer, Error number: 20598)
Get help: http://help/20598
The row was not found at the Subscriber when applying the replicated command. (Source: MSSQLServer, Error number: 20598)
Get help: http://help/20598.

Please post your valuable answers ASAP

Thanks in advance.


RAM

Logreader error related to an incorrect domain account but we don't use that account

$
0
0

Recently we encounter some errors on the log reader agent job for all our publishers in our push replication setup.  All publisher dbs are coming from the same db in the publishing server.    Our distribution db is on its own physical box.  We are using SQL 2008 r2.  The first error is related to“The process could not execute 'sp_replcmds' .  The second one is "Could not obtain information about Windows NT group/user 'domain\xxxxxx', error code 0x5”.    The strange thing about the second error is that we don't use that account to set up the replication.  I am using a totally different account for it.  Just in case, I checked all log reader security set up for the publisher dbs and it is using the sql job agent account by impresonation and not using the said domain account in the error.  Another interesting about this problem is that the problem would self-correct meaning after a few hours of giving out the errors, the log reader would function again and distributing the commands to the distrbution db.    

I need to find out why the replication is giving out an error on a domain account that we don't use.    A little bit of background info here.  We did move all our servers to a different location and set up a new domain for everything.  However, all replication setup started from scratch so there is no chance I would use the said account to set up my replication.    the only thing that is coming from the old location (or old domain) is the databases.    We did a backup and restore to bring the databases to the new location but we don't restore the original publisher settings during the restore.

Is it possible that somehow there is some old replication setting related to the said domain account somewhere in our current replication setup somewhere?  Is there a command I can use to search for this domain account in our replication setup?  Any ideas or thoughts are very much appreciated.

od


Ocean Deep

MS SQL 2012 - Error when create a publication for replication transaction

$
0
0

Hi,

   I'm working on SQL 2012. When I created a publication for a replication transaction, snapshot agent failed as below error:

"A .NET Framework error occurred during execution of user-defined routine or aggregate "sp_scriptdropinsreconciliationproc_sqlclr":
System.TypeInitializationException: The type initializer for 'System.Data.SqlClient.SqlConnection' threw an exception. ---

".

Could you help me to resolve this issue ?

Thanks

Viewing all 4054 articles
Browse latest View live




Latest Images