Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Replication (2005)
 Recovery Replication Stream

Author  Topic 

agiotti
Starting Member

37 Posts

Posted - 2010-08-24 : 15:59:10
SQL Server 2005 Enterprise.

Replicating to a remote site. If we drop our connection the replication stream is broken. Upon re-establishing the connection all articles are resent to the subscriber. Is there a way to recover the replication stream to only transfer transactions that are new or changed instead of everything?

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2010-08-24 : 16:03:13
it will pick up where it left off. transactions will be stored at the distributor until it can reconnect to the subscriber.

unless your subscription is set to expire if connection is dropped. can view that in the publisher properties
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-08-24 : 16:24:53
It also depends on how long the connection was broken. The default of the distributor is to delete the data after 72 hours, even if the transactions haven't been delivered to the subscriber. So if you are beyond the 72-hour window, then you'd have to start from a new snapshot. You can change the 72-hour retention via the distributor properties or the SQL distribution cleanup job. Please note that increasing the retention could cause performance issues, which could lead to replication latency.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

agiotti
Starting Member

37 Posts

Posted - 2010-08-24 : 18:50:17
thank you very much for all your replies!!!! This has been very helpful.
Go to Top of Page

agiotti
Starting Member

37 Posts

Posted - 2010-08-24 : 19:34:25
One more question. We built a test system mirroring production, replicating to a remote site. If we restore the publisher database and the subscriber database how can we begin replication without performing a full snapshot first? In otherwords, how do inform the engine both copies are identical and only want to replicate changes?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-08-24 : 19:37:13
You just uncheck the option to initialize it while setting up replication.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

agiotti
Starting Member

37 Posts

Posted - 2010-08-24 : 19:46:34
Tara you are awesome! thank you very much!
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-08-24 : 19:55:05
You're welcome.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -