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

Message: The processing of the response message failed.

$
0
0

Hi,

I configured Web Sync Merge Replication using the steps mentioned at your website. But I am getting an error:

Source:  Merge Process
Number:  -2147467259
Message: The processing of the response message failed.
2014-05-07 11:38:01.029 Repl Agent Status: 3

Please help to resolve it.


SP_replmonitorhelppiblication in SSIS

$
0
0

Hi

The SSIS package has a step where it calls for a DB snapshot replication (SQL Agent Job) to start after it has updated the database on server A.

I want SSIS to wait till this snapshot generation and subscription has finished before going to the next task. The following task requires access to the tables that are being replicated, therefore need to be available.

Will appreciated if someone could advise on how to use sp_replmonitorhelppublication and SP_replmonitorhelpsubscription to get the status for replication and only allow the SSIS package to progress once replication is finished.

Thanks


DBA


DBA

Initial snapshot

$
0
0
I have a semi-working transaction replication running.  That is to say except a few articles i couldn't add in.  I couldn't add them because I didnt want to drop the table and recreate it.  I want to keep the records in this table on the subscriber but append the records from the publisher.  So I selected to leave the existing table as it is.  But when it ran the snapshot it gave an error about PK conflict.  What can I do to keep the records and only append from the pub?

Replicate only schema in some tables

$
0
0

Hi guys,

I have got a problem configuring a replication between 2 databases in the same server in my test environment

Database 1 is a daily full backup restored of production database.

Database 2 is only from test, but I don't want replicate data of some tables, only the schema (changes on data types, new columns, etc).

How I can do this? Where I run the replication job replicate all data, although configure in Local Publication - Properties - Articles - Tables - MyTable - Statement Delivery:

Thanks to all.

Synchronization

$
0
0

Hello,

I'm having to build a smart client application that works with an offline sql express database on the client. And works with several types of databases - that may be configured to work as a central server. The list includes the sql server family including 2000, 2005 and express and also IBM DB2.

I have to address some rather complex merge replication scenarios. By Merge I mean the ability to deal with handling and synchronization of bi-directional changes. More specifically changes to data may be made to any database in the system. either local or central.

I'm afraid, I cannot use sql replication in a heterogenous mode for several reasons. Some being - the database is being auto attached on the client, the application is expected to live up to the 'low impact' install ideology and should not need any major configuration etc.....

Are there any recomended approaches/Ideas one may use to acheive replication. Any links/information/ideas will be great.

 

Thanks,

Avinash

 

 

 

.ldf file is eating disk space in SImple recovery Model Sql server

$
0
0

Hi,

I've got an SQL SERVER 2005 which has a transactional replication running .

Our main concern is Log file is growing and we were not able to truncate the log space . We run "sp_MSdistribution_cleanup" stored procedure every alternative days to clean up the distribution database and also tried shrinking the log file .

It is not working. Is there any solution for this ? How to truncate the logpsace .

Appreciate your help.

Thanks in Advance

Cheers,
Sandy

Why SQL Server if Windows Server is being replicated?

$
0
0

Hello Community

    If I am replicating the Windows Server then all of the files on the server should
be getting replicated so why do you replicate SQL Server?

    Thank you
    Shabeaut

configure merge replication between two different domain accounts

$
0
0

please help me,

how to configure merge replication between two different domain accounts ,

what type of seetings required between two machines?

thanks in advance.


Replication better approach

$
0
0

Hi All,

I am doing transaction Replication of one database and want better approach and some clarification

for example:-

I have A database and want to replicate in two different location It create two publication for database A in Local Publication .My question is if it create two publication then it send the data two times to distributor ?

And one more question I want to replicate same DB to two different location in US and Kolkatta and my publisher db also in Kolkata and I want one replication server in Kol and one in US  then I am using remote distributor in Kol and Now this is my approch:-

A- Publisher in Kol

B-Distribution in Kol

C- Subscriber in Kol

D- Subscriber in US

Please let me know what i have to use pull and push Subscription and any other approch which i have to use sending data through WAN

if any modification required then please help .

Thanks in advance.

How to configure alerts for error in Subscriber in transactional replication in SQL server

$
0
0

Hi All,

I am getting the below error in the subscriber which i know how to resolve but i want an alert to be raised whenever there is an error in the Subscriber.I tried using the configure alerts in the warning tab in the Sqlmonitor.exe but it didn't worked.Can anybody help me out please.

Command attempted:
if @@trancount > 0 rollback tran
(Transaction sequence number: 0x00000000000000000A9200000000, Command ID: 1)

Error messages:
Invalid date format (Source: MSSQLServer, Error number: 20025)
Get help: http://help/20025
Invalid date format (Source: MSSQLServer, Error number: 22007)
Get help: http://help/22007

Thanks,

Transactional replication very slow with indexes on Subscriber table

$
0
0
I have setup Transactional Replication for one of our databases where one table with about 5mln records is replicated to a Subsriber database. With every replication about 500-600.000 changed records are send to the Subscriber.

Since one month I see very strange behaviour when I add about 10 indexes to the Subscriber table. As soon as I have added the indexes replication speed becomes extremely slow (almost 3 hours for 600k records). As soon as I remove the indexes the replication is again very fast, about 3 minutes for the same amount of records.

I've searched a lot on the internet to solve this issue but can't find any explaination for this strange behaviour after adding the indexes. As far as I know it doesn't have to be a problem to add indexes to a Subscriber table, and it hasn't been before on another replication configuration we use.

Some information from the Replication Log:

With indexes on the Subscriber table
--------------------------------------
Total Run Time (ms) : 9589938 Total Work Time : 9586782
Total Num Trans : 3 Num Trans/Sec : 0.00
Total Num Cmds : 616245 Num Cmds/Sec : 64.28
Total Idle Time : 0 

Writer Thread Stats
Total Number of Retries : 0 
Time Spent on Exec : 9580752 
Time Spent on Commits (ms): 2687 Commits/Sec : 0.00
Time to Apply Cmds (ms) : 9586782 Cmds/Sec : 64.28
Time Cmd Queue Empty (ms) : 5499 Empty Q Waits > 10ms: 172
Total Time Request Blk(ms): 5499 
P2P Work Time (ms) : 0 P2P Cmds Skipped : 0

Reader Thread Stats
Calls to Retrieve Cmds : 2 
Time to Retrieve Cmds (ms): 10378 Cmds/Sec : 59379.94
Time Cmd Queue Full (ms) : 9577919 Full Q Waits > 10ms : 6072

Without indexes on the Subscriber table
--------------------------------------
Total Run Time (ms) : 89282 Total Work Time : 88891
Total Num Trans : 3 Num Trans/Sec : 0.03
Total Num Cmds : 437324 Num Cmds/Sec : 4919.78
Total Idle Time : 0 

Writer Thread Stats
Total Number of Retries : 0 
Time Spent on Exec : 86298 
Time Spent on Commits (ms): 282 Commits/Sec : 0.03
Time to Apply Cmds (ms) : 88891 Cmds/Sec : 4919.78
Time Cmd Queue Empty (ms) : 1827 Empty Q Waits > 10ms: 113
Total Time Request Blk(ms): 1827 
P2P Work Time (ms) : 0 P2P Cmds Skipped : 0

Reader Thread Stats
Calls to Retrieve Cmds : 2 
Time to Retrieve Cmds (ms): 2812 Cmds/Sec : 155520.63
Time Cmd Queue Full (ms) : 86032 Full Q Waits > 10ms : 4026


Can someone please help me with this issue? Any ideas? 

Pim 

Creating a "Central Distribution" database server for Transactional Replication

$
0
0

I am attempting to set up a "central distribution" server for transactional replication.  The idea is that the 'Distribution' database would reside on this centralized server, allowing remote subscribers and  remote publishers to interact with one another, via this environment.

I have already set up my first publisher, on a SQL Server 2008 environment.  The 'Distribution' db resides on a SQL Server 2012 instance.

I am now attempting to set up my first remote subscriber, however, and cannot seem to access the publication data from my remote publisher.

I have already gone into the distributor properties and added the remote publisher, and I believe that my security is set up properly. 

Can you please advise me as to what steps am I missing, as I am not quite sure why this does not seem to be working.

Thanks!

Transactional Replication error

$
0
0
Question Hi,

I have configured Transactional Replication, I have Encountered some error the data is not sync the error is'Agent  is retrying after an error. 361 retries attempted. See agent job history in the Jobs folder for more details.'when i see in the job history it shows'The replication agent encountered an error and is set to restart within the job step retry interval. See the previous job step history message or Replication Monitor for more information.'How to fix it

Stuck!

$
0
0

Morning,

I have been stuck looking at an issue with Transactional Replication for the last couple of days. Each morning I come in to find a series of blocks with MSadd_replcmds (see attachment Replication1). If I open Replication Monitor first thing and look at the Publisher to Distribution History, the command count is hung (see attachment Replication2). The errors in this screenshot are me killing of the MSadd_replcmds spids. If I kill off these spids, the command count will briefly increase as it gets through more transactions, but then the blocks start again and the cycle repeats. I have tried looking at the data in the ms_replcmds table (below code snippet) and there are a few hundred thousand transactions from 4:00am still showing, not a clue where to start as far as digging through them to see if there is an obvious transactions causing it. If I resnapshot to push through the transactions, replication will continue fine until the overnight processing kicks in again. Rinse and repeat.

I am at a bit of a loss as to where to look next. There are no errors standing out, there are no transactions standing out.

Any guidance on what to look for next would be massively appreciated.

Cheers

SELECT 
	@@SERVERNAME
,	a.article
,	a.publisher_db
,	P.publication
,	min(entry_time) AS [Min]
,	max(entry_time) AS [Max]
,	count(*) AS [Cnt]
FROM 
	distribution.dbo.msrepl_transactions AS t
INNER JOIN distribution.dbo.msrepl_commands AS c 
	ON c.publisher_database_id = t.publisher_database_id AND c.xact_seqno = t.xact_seqno
INNER JOIN distribution.dbo.MSarticles AS a 
	ON a.article_id = c.article_id
INNER JOIN distribution.dbo.MSpublisher_databases AS d 
	ON d.publisher_db = a.publisher_db AND d.id = c.publisher_database_id  
INNER JOIN distribution.dbo.MSpublications AS P 
	ON P.publication_id = A.publication_id
WHERE 
	1 = 1
GROUP BY 
	a.article
,	a.publisher_db
,	P.publication
ORDER BY
	[Min];


Transaction (Process ID 80) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

$
0
0

Hello, 

Yesterday I had to run this command to bring database to read only mode as there was no space left on the data drive. 

USE [zenworks_UAL]

GO
ALTER DATABASE [zenworks_UAL] SET READ_ONLY WITH NO_WAIT
GO

This morning extra 10 GB has been allocated to the data drive and I ran this command to bring database back to read/write. 

USE [zenworks_UAL]
GO
ALTER DATABASE [zenworks_UAL] SET READ_WRITE WITH NO_WAIT
GO

However I am getting the error:

Msg 924, Level 14, State 1, Line 1
Database 'zenworks_UAL' is already open and can only have one user at a time.
Msg 1205, Level 13, State 68, Line 1
Transaction (Process ID 80) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
Msg 5069, Level 16, State 1, Line 1
ALTER DATABASE statement failed.

I've checked sp_who and there is no process whose status is suspended. I've also checked sys.sysprocesses table and there is no blocked > 0. 

Also dbcc opentran showing no open transaction. 

Please advise?

Many thanks, 

Mohan


SQL Server 2008 R2: SQL Database Sync to SQL Azure

$
0
0

Dear All,

I'm using SQL Server 2008 STD R2. I want to sync my production SQL Database to SQL Azure. I want to all relationship, schema, data, trigger remain the same when sync to SQL Azure.

I had followed 

http://blogs.msdn.com/b/sync/archive/2010/08/31/sql-server-to-sql-azure-synchronization-using-sync-framework-2-1.aspx.

It can sync only data but relationship, trigger is not synch.

Please commend?

BR,

Khemarin


Khemarin333@hotmail.com

Configure Distribution.error

$
0
0

When I try to configure distribution for replication, I get an error stating that it cant connect to local host and that I need to connect using the computer name.  The thing is, I am ALREADY connecting using the computer name! 

SQL was installed, and then the computer name was changed.  It now wants me to connect using the old name, but that is not valid any more.  I have tried to go into all the SQL setup areas that I can find, but they all reference the new, correct, server name.  Not sure why SQL is hung up on the old name or where to fix this.  Any / all help is appreciated!

Adding table to a replication configured database

$
0
0
Hi, I have transactional replication between two servers. The publisher and distributor resides on the same server. We need to add a table to the publisher database, which doesn't requires replication to the subscriber. Pl suggest on the steps to be followed before adding the table to db.

Replication : The process coule not read file????

$
0
0

Hi.everyone.I use two computer in workgroup.I use A to be a publisher and distributor ,B to a Subscrible.When i create a snop in A computer and Create snopshot in "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\repldata\unc",when I use "view Synchronization Status" in B computer, the show "job already  success start",but in A computer sqlserver error log show "Message
Replication-: agent LIUQINA\SERVER2005-TestTran-Tran-LIUQIANHOME\HOME-6 failed. The process could not read file 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\ReplData\unc\LIUQINA$SERVER2005_TESTTRAN_TRAN\20070409150285\name_2.pre' due to OS error 3.".  The publisher snapshot agent is servername\administrator.

I find a lot of message in internet ,but no one can help me .I try use same account and password in two computer.but no help.

Please tell me why and how to solve it ? Thanks.

Trans. Replication failing -- "Cannot update identity column ..." -- unable to use sp_browsereplcmds to view statement

$
0
0

All, I'm trying fix an issue with transactional replication where replication monitor is showing the push to the subscriber is failing because of the error, "Cannot update identity column."  I've tried to use sp_browsereplcmds to pull up the command that's failing based on the xact_seqno but when I try that I get the error:

"

Number: 102, State: 1, Procedure: , LineNumber: 0, Server: , Source: .Net SqlClient Data Provider
Message: Incorrect syntax near '┻'.

"

I'd like to fix the issue without having to rebuild replication during a maintenance window.  I know you cannot publish tables with primary keys, but I'm wondering if dropping the identity column on this table might fix the issue.  I'm considering that but I would prefer to be able to pull the command that's trying to update the identity column, throw in SET IDENTITY_INSERT ON and remove the commands from the distribution database, but if that doesn't work I'm open to ideas of just dropping the primary key on the replicated table.  I think that should be fine.

Does anyone have any recommendations on how to view the command that's failing?

Or if dropping the primary key on the subscriber table would create issues with the publisher (since it is also the primary key)?

Or, know of any other ways in which to address this issue?  Thanks.


Viewing all 4054 articles
Browse latest View live




Latest Images