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

Unable to get new filtered data without reinitialising subscription

$
0
0

Hi,

I am developing a .NET Windows application to be used by field
engineers to capture data on rugged tablets running desktop Windows.
This application can also run in the office, connecting to the main SQL
Server database (2008 R2) that holds all the data.

When in mobile mode the application has a sync feature. This uses
merge replication (push) to sync the data between the main database and a
SQL Server express database on the tablet.

The database on the tablet will only have a subset of the data
required for the engineer to do their job. I have used the filtering to
do this. The filtering makes use of the currently logged in user and
calls a function to return the subset of data needed
for the job for the current user logged in.

I have a problem with this. After the initial sync, no new job data
is replicated down. Also, the previous data remains. I would like this
to be removed after syncing.

I have been able to get this to work if I reinitialise the
subscription (through code) but this makes the sync really slow.
Especially when syncing over the mobile data connection.

Any help / advice on getting this to download new data without reinitialising would be appreciated.

Thanks in advance for your help.


Microsoft SQL Server 2008 + Lync 2010 CAL

$
0
0

Hi Forum,

I have a very specific question, we will deploy a Lync 2010 Enterprise edition using 2 SQL Server 2008 in HA.

I will buy the SQL Server 2008 Standard 64 bit service license for each node, but not sure how many SQL Server CALs I need.

This Lync HAS NOT local users, just use Federated users. As I have federated users not sure how to calculate the CAL Device/CALs.

http://www.blackcurrant.be/lng_EN/index.php?page_id=6&subpage_id=126&tutorial_id=145

Cheers

Configure Transactional SQL Server Replication

$
0
0

i have two server and i want to configure Transactional SQL Server Replication.

please provide solution step by step.

Thank you.

The replication SnapShot agent Failing

$
0
0

We are consistently getting the error message below on our subscribers that have blob images. Is there a way to increase a setting to avoid SQL to throw this error, or another suggestion? Thanks in advance.

 Version:-SQL server 2005 SP4

Error messages:

The replication agent has not logged a progress message in 10 minutes. This might indicate an unresponsive agent or high system activity. Verify that records are being replicated to the destination and that connections to the Subscriber, Publisher, and Distributor are still active.

Aprroch followed but not wokirng

I have approx 40 Publisher and subscriber but it didn't happend beofore.

I have laso tried to cahnge the Heratbeat_intervel via  sp_changedistributor_property

I have alos tried to re-create the relications and even for ANY publisher snapshot agent is not working.

tried to check the bloking also

could some one please try to give me the exact solutions.

Thanks

Ekbal


EA


Replication unanticipated error

$
0
0

Hi

I have a marge replication between 'Publisher' and 'Subscriber', on replicating table 'T1' I'm receiving the following conflict: 

"A row insert at 'Publisher' could not be propagated to 'Subscriber'. This failure can be caused by a constraint violation.  The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION."

followed with multiple conflicts:

"A row insert at 'Publisher' could not be propagated to 'Subscriber'. This failure can be caused by a constraint violation.  The Merge Agent was unable to synchronize the row due to one or more unanticipated errors in the batch of changes. When troubleshooting, increase the -OutputVerboseLevel setting, restart the agent, and check for and resolve any errors generated by the database engine."

reviewing the data, everything seems to be fine!!!!, I mean the rows that returning the conflict (could not be propagated) are actually (propagated) and exists in both 'Publisher' and 'Subscriber'.

any Ideas!!

thanks

Amir Sabri

PS:

- increasing the OutPutVerboseLevel did not solve the problem

- there is a ROLLBACK TRANSACTION command in T1 insert trigger but its preceded with the line

IF @@TRANCOUNT > 0


Snapshot Agent in Sql Server 2008 Transactional Replication

$
0
0

Folks,

Is there any way to keep the destination table as it is while applying snapshot sync?

1. Target table is having PK constraint. So, the option "Keep existing object unchanged" of the property "Action if name is in use" may not work due to primary key violation.

2. I do not want to loose any table rows and properties like partition, compression, non-clustered indexes on target table after snapshot sync.

My final requirement is that the target tabel always should be in online as well as table data.

Thanks in advance..!


Regards Chenchi MSSQL Server DBA

updating subscriber data based on condition

$
0
0

OS: W2K8 R2 SP1 SE

SQL Server: SS2K8 R2 SP1 SE

In transaction replication is there a way that I can restrict the updates specific only to a column?

Lets say if updates occur on source table(publisher database) on column a, column b and column c then I dont want any thing to get updated in the destination database tables (subscriber database). But if update occurs only on column d on source table(publisher database) then I want it to get updated in destination table too (subscriber database). This is the condition. Is this possible?

Thanks Again

problem with replication monitor - big red x (still) -- sql server 2000 -- added pictures to illustrate problem

$
0
0

A few weeks ago I removed replication from our main database (sql server 2000) -- which is no longer under replication -- using

sp_removedbreplication 'Subscriber'

(without running preliminary SPs -- and Subscriber is the name that was given to our main DB -- before I came onboard)  because I needed to detach this db to eliminate a bloated ldf file.  But then I noticed a big red x on the replication monitor (as is illustrated in the following pics.  I ran dbcc checkdb against the publisher DB and there were no errors.  But there WERE some errors on the Distribution DB.  I ran CheckDB with repair....  And that fixed the errors in the Distribution DB.  But I still have the red x (red circle with a white x actually).  Do I need to restart any services?  What SPs do I need to run?  I tried running these SPs (from SSMS sql server 2008 R2 tools) -- but still the red x and also an error message in SSMS (see pics below)

sp_dropsubscription
sp_droppullsubscription
sp_dropmergepullsubscription

How to fix this problem?

Thanks

Any help appreciated to fix all this.

Many Thanks


Rich P




How accurate and reliable the replication in SQL Server 2008

$
0
0

Folks,

Just I would like to know how accurate and reliable the table records on the subscriber database in the replication. Is there any way to compare the table records (size of the table is around 110 gb) with publisher to make sure that no data has been missed out in replicaiton??

Thank you..!


Regards Chenchi MSSQL Server DBA

how to copy identity column to subscriber

$
0
0

Hi all,

I m trying to setup replication between 2 servers. ServerA has around 10 tables that needs to be copied to ServerB 10 tables. Both servers has same exact copy of tables.

Now all these 10 tables have identity columns + other data that needs to be copied to ServerB twice a day.

One way traffic. Only requirement is that at end of day both tables are sync with same data and identity values.

What kind of replication will fit here?

How to have same ID column for both tables?

Any help would be appreciated.

Thanks,

Replication: Can I Publish a database that is already a Subscription to another database?

$
0
0
Replication:  Can I Publish a database that is already a Subscription to another database?

Can't remove Replications

$
0
0

Hi Guys,

I have the following problem with SQL 2012 server.

someone setup a snapshot replication for one of the db. we want to detach this database (the one being replicated) and remove the replications db also and the replication. there are no subscriptions anymore.

the error that i receive is 

Msg 15517, Level 16, State 1, Procedure sp_replcmds, Line 1
Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated, or you do not have permission.

the publication db owner is SA and the db it is replicating to is a windows account.

I also tried the manual remove them using 

-------Run the following script at the Subscriber:--------
USE <Subscription database name>
GO
EXEC sp_droppullsubscription @publisher = N'<Publisher server name>', @publisher_db = N'<Publication database name>', @publication = N'<Publication name>'


-------Run the following script at Publisher:---------
USE <Publication database name>
GO
EXEC sp_dropsubscription @publication=N'<Publication name>', @subscriber = N'<Subscriber server name>', @article = N'all', @destination_db = N'all'

-------To drop a snapshot publication, run the following script at Publisher:---------
USE <Publication database name>
GO
EXEC sp_droppublication @publication = N'<Publication name>'

USE master
GO
EXEC sp_droppublication @publication = N'<Publication name>'
exec sp_replicationdboption @dbname = N'<Publication database name>', @optname = N'publish', @value = N'false'

PLease can someone assist me..

Kind Regards

replicating tables in same database in two different publications

$
0
0

Hi ALL,

 We have merge replication setup with republishers..having more than 100 end subscribers...

we have some articles that need to be replicate one way...

For example In database we have 3 articles named a, b and c

we want to replicate 'a' two way using merge replication and articles b and c one way(i.e subscriber to publisher)..

A is going from main publisher to republisher and then from republisher to end subscriber..(this is two way replication)

i want to replicate 'b' and 'c' from main publisher to republisher and then to end subscriber( this is one way, upload changes only from end subscriber-->republisher-->main publisher)

are there any issues in replicating articles from same database in two different publications?

how do i setup one way replication in republisher topology(only uploads)

Couln't add a new column in a merger replicated article on publisher -SQL 2005 Enterprise Edition SP4.

$
0
0

ALTER TABLE invoices
ADD pcard_invoice BIT NULL

Go

Got errors:
The data

definition language (DDL) command cannot be executed at the Subscriber. DDL commands can only be executed at the Publisher.

In

 a republishing hierarchy, DDL commands can only be executed at the root Publisher, not at any of the republishing Subscribers.

Msg 21530

, Level 16, State 1, Procedure sp_MSmerge_ddldispatcher, Line 182

The

schema change failed during execution of an internal replication procedure. For corrective action, see the other

error

messages that accompany this error message.

Msg 3609

, Level 16, State 2, Line 1

The

transaction ended in the trigger. The batch has been aborted.

merge replication

$
0
0
we currently have a merge replication for a database where the publisher is 'dat1' and subscriber is 'dat2'

1. i initially delete the existing data on 'dat1' the publisher to insert the new data
2. insert into 'dat1'
3. err/ problem: The latest inserted rows are not being replicated to 'dat2'

any suggestion why the merge replication is not replicating to the subsciber'dat2'

Thanks

transactional replication error

$
0
0

error when reinit publication :

Failed to apply the script 'azRAD_IMG602_REA9425dd76_1.sql' using the 'sqlcmd' utility.

I tried to turn of ansi padding and turn on but i couldnt resolve.

Any suggestions..?!

Transactional Replication Issue

$
0
0

Hi All,

Since two months i am facing problem and unable to resolved. In replication monitor i was receiving below error

"The replication agent has not logged a progress message in 10 minutes. This might indicate an unresponsive agent or high system activity. Verify that records are being replicated to the destination and that connections to the Subscriber, Publisher, and Distributor are still active."

After I defined the heartbeat value to 60 minutes. now i am receiving following error: i dont know why it is taking too much time to complete. can anyone please explain is it connection issue between servers while replicating or something else?

The replication agent has not logged a progress message in 60 minutes. This might indicate an unresponsive agent or high system activity. Verify that records are being replicated to the destination and that connections to the Subscriber, Publisher, and Distributor are still active.

Tempdb is growing crazy due to replicating data to ther SQL server

$
0
0

Hi,

I am having issues with my SQL 2012 where the temp is growing crazy during replicating the data to other SQL 2012 server. The actual DB is 5GB and the tempdb approaches upto 200GB. I have to restart the server to bring the rest the tempdb but it grows back again...The log reports following errors...

The activated proc '[dbo].[spDRSMsgBuilderActivation]' running on queue 'CM_ABC.dbo.ConfigMgrDRSMsgBuilderQueue' output the following:  'ERROR 3961, Level 16, State 1, Procedure spDRSSendChangesForGroup, Line 1, Message: Snapshot isolation transaction failed in database 'CM_ABC' because the object accessed by the statement has been modified by a DDL statement in another concurrent transaction since the start of this transaction.  It is disallowed because the metadata is not versioned. A concurrent update to metadata can lead to inconsistency if mixed with snapshot isolation.'

spid32s     The activated proc '[dbo].[spDRSMsgBuilderActivation]' running on queue 'CM_ABC.dbo.ConfigMgrDRSMsgBuilderQueue' output the following:  'ERROR: Sync of type Configuration Data failed, see previous messages for details.'

Any suggestions?

Thanks

Could not delete publication?

$
0
0

I got the following error message when deleting a publication. The user 'Domian\deletedUser' is deleted from AD by IT. Although the deleted user originally created the database DB1. The publication is created by me and the SQL Agent is running using another active domain user.

Is there any way to delete the publication?

Could not obtain information about Windows NT group/user 'Domian\deletedUser', error code 0x534.
Changed database context to 'DB1'. (Microsoft SQL Server, Error: 15404)

Error message:

Msg 15404, Level 16, State 11, Proceduresp_replcmds, Line 1
Could not obtain information about Windows NT group/user 'Domain\deletedUser', error code 0x534.

How to deal with column which save AMOUNT value in the Replication

$
0
0
Hi everybody
We are using SQL 2008 SP 2, and there is a replication between 6 sites 
So the problem is:
we save amount values in a field (ex: 500$), which maybe changed in two sites at the same time, then if the replication is down at that time, so we have two different values in both sites, and if i use recent updated or publisher as a winner i will get wrong amount value

so, Is any replication strategics to merge the two values

MOHAMED KHAIRY

Viewing all 4054 articles
Browse latest View live


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