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

Failed to send batch after max errors - Snapshot

$
0
0

I have been replicating happily between 2008 R2 SQL Servers for some time using Transactional replication.

Replication stopped yesterday with the following messages on the source server:

MSSQL_ENG10054Communication link failure
MSSQL_ENG10054TCP Provider: An existing connection was forcibly closed by the remote host.
MSSQL_ENGFailed to send batch after max errors
MSSQL_ENGUnspecified error
MSSQL_ENGAn existing connection was forcibly closed by the remote host.
MSSQL_REPL0 The process could not bulk copy into table '"pro"."ZZM012X"'.

In the Event Viewer on the target server this message appears:

"A fatal error occurred while reading the input stream from the network. The session will be terminated (input error: 10054, output error: 0)."

So this happened after it had been replicating for some time.  I get the same error now when I try to restart it or if I rebuild the publication/subscription completely.

There are 7 tables in the publication - 6 of them bulk copy and then replicate without issue.  The error is specific to one table.  The table has a column in that is varchar(132) and it contains recipe instructions to our manufacturing plant.  If I replicate the table and exclude this field, it doesn't fail.  I initially thought it might be spurious characters in the text column but I have removed these and still get the same error.  I have set up a test version of the table and publication/subscription to enable me to test outside of the live environment.  Same errors occur.

Does anyone have any clues or pointers to what might be causing it?

Many thanks

Les


move the database with replication configured

$
0
0

I need to move the database to a different disk drive on the same server. The database has the merge replication configured. It is one of the subscribers. My question is if I need to re-configure the replication or I can simply stop the replication agent and move the database, then restart the agent.


Bing

Restore From Backup - Cannot declare more than 10000 local variables.

$
0
0

I found this related article but not much else regarding this issue but its solution is not possible for me due to the size of the database.

http://social.msdn.microsoft.com/Forums/sqlserver/en-US/1601c634-ed7e-41db-aff5-f324e04cbe24/issue-with-replication-synctype-initialize-with-backup

My Database is 50+ GB so I can't use snapshot as i need to compress the data before I transport it over the WAN. Snapshot Compression failed because the snapshot is to large. This seems like a wierd error as I can zip the file but suspect it has something to do with what ever compression MS is using on snapshots has a 2GB limit or something,

Anyways I ran profiler to try to capture exactly what the error was basically Its in a loop it creates the SP_MSDelDbo stored procs for each table then runs the failing query then rolls back and starts the process over again.

Below is a screen shot from Profiler but running the commnad executing before the error


if columnproperty(object_id(N'dbo.MSreplication_objects'), N'article', 'AllowsNull') is not null 
exec ('insert dbo.MSreplication_objects (object_name, publisher, publisher_db, publication, article, object_type) values (
                                    + N''sp_MSdel_dboE_RE_LIST_TransacFolders'' , N''CTMS1'' , N''ctmsoftware2'' , N''CTMSoftware2'' , N''E_RE_LIST_TransacFolders'' ,''P'')')

executes succesfully with 1 row so not sure exactly why I can't see the error or how to fix it.

Any help would be appreciated.

Thanks

Andy


Group have the access but not able to access the database?

$
0
0

Hi All,

I am facing the different issue in my environment .

we have grant the read and write access to one group on database, after that we have added the one user to that group.

now user was unable to connect to database and his get below error....

Msg 916, Level 14, State 1, Line 1
The server principal "xxxx\xxxx" is not able to access the database "testDB1" under the current security context.

Please help me on this issue asap.....

Thanks in advance .....


RAM

Does SQL Server 2012 Web Edition supports Pull subscription?

$
0
0
Hi All,

Is it possible to replicate tables in pull subscription using SQL Server web edition 2012?

Thanks for your time and support.

Regards,

Kalyan

----Learners Curiosity Never Ends----

SQL Merge Replication Error

$
0
0

HI

I'm merge replicating between SQL Server 2005 and SQL Compact on mobile devices.

It is taking long time to download the data, with following message displayed

The process is waiting for a response from the query '{call sys.sp_MSinitdynamicsubscriber (?,?,?,?,90,1,0)}'’

After some time the data downloaded is (i.e. 5O MB) in PDA completed with status error, and again it started downloading the data from the beginning with new synchronize process.

The error displayed was

The row operation cannot be reapplied due to an integrity violation. Check the Publication filter. [,,, Table, Operation,RowGuid] (Source: MSSQLServer, Error number: 28549)

Anyone can help me out to figure out why this error message occurs?


Srikanth[096]

conflicts on a single table

$
0
0

I am having a conflict issue on just one table out of 37 table articles

The database is for Food recipes I have 3 users making changes, they each have their own menus so they should not work on anyone else's dishes [tblRecipe] but they do need to be able to copy and view other users dishes.
Each dish is in a menu and a dish type and has 2 child tables one for ingredients and one to methods

The problem: is in [tblRecipe]
When a user makes changes to one of their dishes and synchronises a conflict is thrown, even when no one else has synchronised, they will also get conflicts for other users dish changes even though they have not made any changes to the other users dishes.
It trust my users when they say they have not changed other users data

The database is sqlserver 2005 it is merge replication
the publisher is set to win
37 table articles mostly bidirectional
there is no row filtering
I have scripted the publication and as far as I can see all bidirectional articles have the same properties.

I would be gratefull if someone can give me some pointers to a solution or some things I can try


jnc

Snapshot Replication

$
0
0

Hello Folks,

There is any way to do the merge replication by sending the snapshot generated for the replication from publisher[SQL Server 2012 EP] to the subscriber [SQL server Express] by mail   and apply the snapshot at the subscriber by a sql server job.


Snaphot agent schedule

$
0
0

I have a merge replication setup. I would like to change the agent schedule for the snapshot . Can I change it to 30 days from 14 days without any issues?

The publication is already up with many subscribers for a while. Re-init is not an option, I can only do this if it will work easily.

The retention period is already 30 days, I thought the snapshot schedule was synchronized with this?

Unable replicate articles in pull subscription?

$
0
0

Hi All,

Unable replicate articles in pull subscription, getting Warning: "uninitialized subscription" in replication monitor. I'm using the same credentials for both push and pull subscription but push subscription is working fine where pull subscription is not.

Please share your views on this. Thank You

Regards,

Kalyan


----Learners Curiosity Never Ends----

Replication Issue.

$
0
0

One of my production server somebody configured transaction replication from production server to REPL server.

Here my point is all Replication jobs and distribution database are located in REPL server, without distribution database it’s possible to configure publisher?  

And all replication jobs are running on REPL server.

Please give me the clear picture of the transaction replication.

Overview subscriptions marked for reinitialization

$
0
0

Hi,

is it possible by transact sql to generate an overview about which subscriptions are marked for reinitialization(Publisher side).
We are using merge replication on SQL2012 standard (publisher) with SQL2012 express(subscribers) with pull subscriptions.

Configuring push subscription

$
0
0

We are trying to configure a push subscription from our local SQL Server up to a cloud server within Azure (but not Azure database).  We have configured everything locally without incident and we're trying to configure the push.  When we get to the screen to login to our remote SQL server, we receive an error that the server can't be located.  We've tried both xxxx.cloudapp.net and xxx.cloudapp.net\dbname as well as just dbname.  How do we configure a push out to the remote server?


Log Shipping Restore Job working but DB not restoring

$
0
0

Hi All 

I had a problem with log shipping.

The first time i setup log shipping. Restore job working fine.
But after i edit destination folder in "Copy File" Tab Menu,

before the destination folder is \\HQAPPDB\Data_backup then i changed to \\HQAPPDB\C$\Data_backup

then restore job, stop restoring secondary database, but copy job still copying all transaction file to \\HQAPPDB\C$\Data_backup

I think i cannot simply changed like that.

i changed back destination folder to  \\HQAPPDB\Data_backup, sync primary db and secondary db, then enable backup, copy and restore job

but still secondary db not restoring.

Any solution for me so i can make restore job working like the first time i setup ?

I really appreciate for your help

Thank you so much. 


Oryza Safutra

reliable way to locate COM directory for replication tools such as snapshot.exe

$
0
0
I am interested in locating the COM directory where the replications tools such as snapshot.exe are located. It appears that this directory is directly related to the default compatibility level of the SQL installation. I need to generate code that will dynamically locate this directory such that the program will work with all SQL installations (2005, 2008, 2012, 2014) WITHOUT changes. Is there a method or mechanism that willreliably report the location or the default compatibility level of the SQL installation?

Replication components not installed on this SQL Server 2008 R2 Enterprise Error 21028

$
0
0

I get the error 21028 when I try to create a publication.  I have an alias to my subscription server. 

I checked to see if I could add replication (because SQL server said I don't have it installed) through the setup.  I goes through all the checks and tests and shows me what is already installed.  Replication is checked. 

I have also tried to do a command line installation. Several different tries with the following:

D:\>start /wait d:\setup.exe /Q ACTION=Install INSTANCENAME=MSSQLSERVER FEATURES
=SQLEngine, Replication /IACCEPTSQLSERVERLICENSETERMS

It just pops open a cmd prompt window and closes or launches the overall reinstall setup wizard.

 

But when I try to do anything with replicaion in SQL Server Management Studio this is what I get:

TITLE: Configure Distribution Wizard
------------------------------

Microsoft SQL Server Management Studio is unable to access replication components because replication is not installed on this instance of SQL Server. For information about installing replication, see the topic Installing Replication in SQL Server Books Online.

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1&EvtSrc=Microsoft.SqlServer.Management.UI.ReplUtilitiesErrorSR&EvtID=ReplicationNotInstalled&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

Replication components are not installed on this server. Run SQL Server Setup again and select the option to install replication. (Microsoft SQL Server, Error: 21028)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600&EvtSrc=MSSQLServer&EvtID=21028&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------


B. Iverson Lead Engineer. We all live on this tiny blue marble...

Masking or substring data while replicating data

$
0
0

I  have a table that has  some  unencrypted data  that needs to be replicated to another server. I want to do :

1. Mask the data with an x except the last 5 characters e.g.  xxxx12345  

2. just replicate the last 5 characters of the data in the column (substr the last 5 characters)

Is there a way I can do that other than writing a trigger on the subscriber ?

Thanks

R

Move the database with merge replication configured

$
0
0

Hi,

I need to move a database to a different disk drive on the same server. It is the publisher database with the meger replication configured. I stopped all the merger replication jobs and tried to detached the database. I got the error below:

Cannot drop the database 'mydb' because it is being used for replication.

My question is if there is a way I can disable the merger replication and re enable it after I move the database or I have to completely remove the replication and rebuild it.

Thanks,

Bing


Bing

The process could not execute 'sp_repldone/sp_replcounters'

$
0
0

Hi,

I am getting following error "The process could not execute 'sp_repldone/sp_replcounters'  <server name>".

1. I have restored the backup of sqlserver 2005 to sqlserver 2012. 

2. Created the publication.

3. But when I SET "allow_initialize_from_backup =true", I am seeing "The process could not execute 'sp_repldone/sp_replcounters'  <server name>" error comes in  "LogReaderAgent" status.

PS: same I tried with sql server 2012 backup restore in same environments, but it is working without any issues.

Any ideas please?


Raj

Migrate Replication Monitor Registered Servers

$
0
0

I just received a new PC at work.  My old PC was WIN XP with SQL 2005 and my new PC is Windows 7 with SQL 2008.  I was able to port my registered servers over to my new box but have not been abkle to find a way to get all the servers I have registered in replication monitor over to the new box.  I tried copying the RegReplSrvr.xml file from "C:\Documents and Settings\UserName\Application Data\Microsoft\Microsoft SQL Server\90\Tools\Shell" to the new box but when I open replication monitor I still do not see all the servers I had registered.

Can someone assist who may know how this can easily be accomplished

Viewing all 4054 articles
Browse latest View live




Latest Images