x

How to query synchronization status for push transactional replication

I have a transactional push-only publication/subscription in SQL Server 2005 that I am creating with a script. The synchronization schedule is set to continuous.

As part of the setup for the subscriber, I need to wait until after the initial synchronization has completed and then perform additional setup of the database.

How can I query to see if the initial synchronization has completed?

more ▼

asked Nov 04, 2009 at 08:38 PM in Default

user-470 gravatar image

user-470
277 19 19 21

(comments are locked)
10|1200 characters needed characters left

2 answers: sort voted first

Is not Replication Monitor providing you with this information?

If not you can search BOL for sp_replmonitorhelpsubscription.

more ▼

answered Nov 05, 2009 at 11:22 AM

Blackhawk-17 gravatar image

Blackhawk-17
11.9k 28 31 36

I want to be able to do it automatically as part of a sql script, so replication monitor isn't really helpful - though sp_replmonitorhelpsubscription looks like it might be promising.
Nov 05, 2009 at 12:08 PM user-470
Also, what do you mean by BOL?
Nov 05, 2009 at 12:09 PM user-470
BOL is SQL Books OnLine - the help tome.
Nov 05, 2009 at 12:26 PM Blackhawk-17

The books online link is http://msdn.microsoft.com/en-us/library/ms188073%28SQL.90%29.aspx

This is what I needed. Thanks!
Nov 05, 2009 at 01:40 PM user-470
(comments are locked)
10|1200 characters needed characters left

If not you can search BOL for sp_replmonitorhelpsubscription.

more ▼

answered May 24, 2010 at 09:02 AM

If not you can search BOL for gravatar image

If not you can search BOL for
1

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x1948
x305

asked: Nov 04, 2009 at 08:38 PM

Seen: 2792 times

Last Updated: Nov 04, 2009 at 08:38 PM