x
login about faq Site discussion (meta-askssc)

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 '09 at 08:38 PM in Default

user-470 gravatar image

user-470
277 12 17 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 '09 at 11:22 AM

Blackhawk-17 gravatar image

Blackhawk-17
10.5k 23 29 34

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 '09 at 12:08 PM user-470

Also, what do you mean by BOL?

Nov 05 '09 at 12:09 PM user-470

BOL is SQL Books OnLine - the help tome.

Nov 05 '09 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 '09 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 '10 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.

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



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x1834
x237

asked: Nov 04 '09 at 08:38 PM

Seen: 1935 times

Last Updated: Nov 04 '09 at 08:38 PM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.