DATABASEPROPERTYEX and the IsSubscribed property

  • Hi All,

    When trying to examine if a database is a subscriber, I am trying to use DATABASEPROPERTYEX like:

    select DATABASEPROPERTYEX ( 'SubscriberDB' , 'IsSubscribed' )

    but it always returns 0, regardless of if the DB is a subscriber or not.

    Is there something i'm missing?

    Cheers.

    Rin

  • That property (and the column in sys.databases) does not work. You can check the distribution database for that info.

    SELECT

    *

    FROM

    distribution..MSsubscriptions

    WHERE

    subscriber_db = 'SubscriberDB';

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

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

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