script to return the replication status

  • I need a script that will return the replication status as small int. Can someone help me with it?

  • select p.publication,

    status = cast(m.status as smallint)

    from MSpublications p join MSreplication_monitordata m

    on p.publication_id = m.publication_id

    where agent_type = 3 -- distribution agent

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply