ReplicationDatabase.EnumTransPublications Method

Definition

Returns a list of transactional and snapshot publications that use the database.

public:
 System::Collections::ArrayList ^ EnumTransPublications();
public System.Collections.ArrayList EnumTransPublications ();
member this.EnumTransPublications : unit -> System.Collections.ArrayList
Public Function EnumTransPublications () As ArrayList

Returns

An ArrayList of TransPublication objects.

Exceptions

When the database does not exist.

Remarks

The EnumTransPublications method can only be called by members of the sysadmin fixed server role and members of the db_owner fixed database role.

Calling EnumTransPublications is equivalent to executing sp_helppublication (Transact-SQL).

Applies to