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

Merge replication downloads process quickly but upload has terrible throughput

$
0
0

I am running merge replication over a WAN. I am using SQL 2008 R2 SP2. The snapshot applies without issues and small amounts of updates process with no problems. When I try to run larger batches (500 inserts/updates), the latency becomes terrible.

When I run the inserts on the publisher, they sync within 20-30 seconds. When I run them on the subscriber, the sync takes close to 10 minutes.

I have tried the slow link agent profile but don't see any differences in the time it takes. Is there somewhere else I can look to see what is causing this issue?

Any advice is appreciated,

Kim


Replication Peer to Peer

$
0
0

hi 

I have sql_server_2008_r2_standard and i want to create replication peer to peer, but it not show the Peer-to peer option enable true.

any one tell me. what is right way to create peer to peer data replication.

Thank you.

transactional replication, but no PK

$
0
0

What is the next best option if I can't do transactional replication because the table I need to replicate does not have a PK? The reason I wanted to do transactional replication is because I only wanted incremental changes from the publisher table. (So, doing a snapshot replication would defeat that purpose)

Export Import Data In Excel File Use OF c#

$
0
0

Hi Every One i have a lot of data minimum(5 Lacks )in sql server, i want to export this data in a excel sheet quickly through c#.

any body have a smart solution.

Thank you. 


Customized Agent Profile not being considered in Merge Agent

$
0
0

I have scenario where i have to synchronize large chunk of data while configuring merge pull subscription in sql 2005.

While synchronizing data it goes beyond 5 minutes and timesout.

To get out of it i created customized agent profile with name "IncreasedTimeOut" and set its timeout to 15 mins. Afte creating it i marked it to be used for each subscription. We are creating this subscription using RMO which runs replmerg.exe to replicate data while synchronization so we are passing AgentProfile =  IncreasedTimeout.

I verified this and it is passing this attribute but some how it is not considering its increased time out.

Is there any other method for increasing timeout for synchronizing large chunk of data?



HiSam

Replication Problem between 2 non trusted domains

$
0
0

Hi guys

I need a little help, I am new to SQL

I have setup replication between two sql 2005 servers internally on the same network ( this was my testing environment)

All works great replication was working well with all tables etc updating as they should

Now this is where the problem started, I needed to replicate this between two remote servers so I did just that created the servers installed all service packs and lastest patched etc etc

I created a vpn to connect them both I put in the ip to resolve the name in the host file

And can now browse the servers between etc other via servername.domain.local this then executes the username and password box for windows.

Right the next stage was to setup replication I have configure servsql to be the publisher, I then went onto Chatsql to setup the subscription but everytime I go to do this I get the following error message:

TITLE: Connect to Server
------------------------------

Cannot connect to servsql.domain.local

SQL server replication requires the actual server name to make connection to the server.

Connections through a server alias, ip address or any other alternate name are not supported

Specify the actual server names, ServSQL (replication utilities )

------------------------------
ADDITIONAL INFORMATION:
I have google searched this problem and tried all user recommendations I've found.

- I have correctly forwarded ports on my router (e.g. I can access the remote desktop from remote places without problem)

- The Windows firewall is well configured, I have added ports 1433, 1434 and I've tried it even with windows firewall turned off.

- I have enabled all protocols needed and revised all setting concerning remote connections within configuration manager and surface configuration

Nothing has helped.

Logshipping error

$
0
0

The log shipping primary database primaryserver.AbraHRMS_Live has backup threshold of 60 minutes and has not performed a backup log operation for 106062 minutes. Check agent log and logshipping monitor information. Event ID 14420

I have deleted the log but I think the msdb table has the row, how do I know which table and which row to delete?

exec master..sp_help_log_shipping_monitor_primary
@primary_server = 'primaryserver',
@primary_database = 'AbraHRMS_Live'

primary_id    primary_server    primary_database    backup_threshold    threshold_alert    threshold_alert_enabled    last_backup_file    last_backup_date   last_backup_date_utc    history_retention_period
9C843969-8485-4D08-8DAD-A2D3D209D041    primaryserver    AbraHRMS_Live    60    14420    1    NULL    2012-12-14 18:50:20.910    2012-12-15 00:50:20.910   2880

Which table do I look into? Please advice

Replication 2005/2008 Keep Subscriber Table Triggeri

$
0
0

Hi,

I have a SQL 2005 DB that has snapshot replication running on it against a DB that is on a 2008 SQL server. 

My issue is this When the snapshot runs, it wipes out a trigger that is on the 2008 DB only. So it has to be manually recreated each time replication runs (which is only about once a month). How do I prevent replication from removing the trigger on the 2008 SQL table? Note I cannot change the publisher subscription, or modify the 2005 DB

Any help would be greatly appropriated. 

Thanks,

Ian



Snapshot replication issue

$
0
0

Hi,

I build snapshot replication from Server-A to Server-B and its working fine. But while building the same replication in reverse order on same database from Server-B to Server-A its giving me error while running Subscription.

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

I just want to build replication like both way with same db using snapshot only. Pls suggest me if its possible or not.

Sql 2005 The process could not connect to Distributor

$
0
0
Hi Guys

I am in the process of creating replication between 2 remote servers, server 1 is the distributor and publisher and server 2 is the subscription

server 1
windows 2003 server
192.168.10.1 connected by vpn
SQL 2005
domain1.local

server 2
windows 2003 server
192.168.10.1 connected by vpn
SQL 2005
domain2.local

when i setup up the replication all looked fine until i looked at the sync status and is said

The Agent could not be started

an exception occurred while executing a transact-sql statement or batch

sqlserveragent error request to run job
server1-username blah blah blah

from user sa refused because the job is already running from a request by user sa changed database context to technical error 22022

I can't seem to locate what the problem is any help would be much appreciated

thanks

http://www.go-train.co.uk

changing subscription expiration

$
0
0

Hi,

I would like to know if I change the no of days in publication properties in General tab "Subscription expire and may be dropped if not synchronized in the following number of days. Replication meta data is kept for this amount of time". Will the subscription be reinitialised?

If so how can I avoid reinitialising the subscriber when I change the number of days?

I would also like to know the change will affect both existing subscriber and new subscriber as well?

Thanks in advance,
Aradhya


Pavan

What are the main differences between transactional replication and log shipping?

$
0
0

Hello All,

In our current environment now, we have a database that serves has an application and ad-hoc database. Our goal is to remove the ad-hoc piece and move it to our current SSRS environment. The question is which method would be the appropriate solution for this goal?

I'm thinking a transactional replication solution would be the best option because it is real time and less effort to set up. Is Log shipping primary used for a failover solution? If I'm correct, this solution will not work for our environment because we do not want to failover to the SSRS environment. Please advice.

SQl 2005 Bidirectional Merge replication - PublisherSubscriber Small Data Mismatch

$
0
0
Hi all,

Firstly SQL 2005 Bidirectional Merge Replication is setup and working between the Publisher and the subscriber.

I am monitoring the stats for Downloaded and Uploaded statements and for the most
part things are looking great.

I am doing data compares (Excluding the timestamp datatype) to confirm things are A ok and
I found that for a few records (Current count is 5) on a certain datetime column is different on the
Publisher from the Subscriber and I was hoping to track down as to the reason.

Please note
1. There are no Triggers on the Subscriber at all.
2. There are some AFTER triggers on the Table in question on the Publisher but none of them 
affect the field in question.


Unsure if this helps but I have also tried to run the below to force the row in question through from the Publisher to the Subscriber but this also does not force things through for the field in question.

declare @int as int
exec @int = sp_mergedummyupdate 'customer','0DDA6892-5E59-E211-8F91-001A64DB8758'
select @int

Any advise would be greatly appreciated.

Kind regards,

Matt

New KB Article - Merge replication does not support centralized subscriber topologies

$
0
0

I am a little confused with this article http://support.microsoft.com/kb/2750005

Under the More Information Section this Bullet point is made

•Two or more publications inside the same publisher database at the same publishing server instance.

This statement confuses me as I interperet it to mean that you cannot have more than publication inside a published database, even if the different publications reference different articles which I believe is common practice.

Should this not read

•Two or more publications inside the same publisher database [referencing the same article] at the same publishing server instance.

Note: I understand the Central Subscriber model with Tran Replication and multiple publishers but this is different.

Any help with clarification appreciated

GW


"Everything in the world should be made as simple as possible, but NOT simpler" A.Einstein

Replication Problem sql 2005 over openvpn

$
0
0

I am in
the process of creating replication between 2 remote servers, server 1 is the
distributor and publisher and server 2 is the subscription

server 1
windows 2003 server
192.168.10.1 connected by vpn
SQL 2005
domain1.local

server 2
windows 2003 server
192.168.10.1 connected by vpn
SQL 2005
domain2.local



when i setup up the replication all looked fine until i looked at the sync
status and is said


The Agent could not be started
an exception occurred while executing a transact-sql statement or batch
sqlserveragent error request to run job
server1-username blah blah blah

from user sa refused because the job is already running from a request by user
sa changed database context to technical error 22022

I can't seem to locate what the problem is any help would be much appreciated

I have cleared jobs in the server agent as well just to make sure but still
nothing <o:p></o:p>

Could this
be something to do with authentication between two non trusted domains as I can
browse and even control each sql server via SQL studio but just not setup
replication?<o:p></o:p>



Changing Polling Interval in Merge Replication...

$
0
0
Hi,

   I want to, how to change the polling interval of the merge agent in the merge replication. Now the default polling interval it shows 60seconds. how to change this polling interval.

   If the Polling interval is reduced to 30seconds then the time taken to fetch data from publisher is reduced is that correct...

   Please need help about this... Thanking You...

How to affectively configure and implement a transactional replication?

$
0
0

Hello,

After several days of researching on how to configure replication, we have decided to go with transactional replication. We will be using the push subscription. With the push subscription does that mean we will have to have a separate server for the distribution agent?  The SQL Server replication topology will be as follows:

- The Publisher (source) will be on one sever
- There will be only 1 subscriber (destination) server for now

Question:

- Where should the distributor process residues?
- Will the network speed play a major part in this?

Thanks.

Problem with creating subscription

$
0
0

Hello all,

I have a one way transactional replication in sql 2008. When I tried to create the subscription from the publisher for the first time, the process got interrupted. Now whenever I try to create a new subscription, in publisher it says that subscription creation is successful but at subscriber I cannot find the subscription in management studio. Is there any way to fix this problem?

Thanks.

Publisher Table size increased and Transitional Replication is failing

$
0
0

Hi,

We have Transitional replication implemented on Large Table and table size is increased half the size of original size and we facing so many problems, Can some one have any tips on this issue

Regards,

Maddy

add one column to table for existing transactional replication

$
0
0

Hi All,

Could any one explain how we can add column to table for existing transactional replication? if add column how it will come to subscriber?


Raveendra

Viewing all 4054 articles
Browse latest View live




Latest Images