
Given a publisher and publication name this returns the status of the publication
on the local server.  If the publisher is the name of the local server this
 returns the next transaction number to be assigned to a transaction as the level output parameter.

If the publisher is other than the local server this returns the transaction number
of the last transaction of that publication that has successfully been replicated to
the local database as the level output parameter.  The stat output parameter
reflects the current state of the subscription.  If the publisher is the local
server the stat is always 0.  Otherwise it has the following possible values:
