ReplicationDatabase.EnumTransPublications Method
Returns a list of transactional and snapshot publications that use the database.
Namespace: Microsoft.SqlServer.Replication
Assembly : Microsoft.SqlServer.Rmo (in microsoft.sqlserver.rmo.dll)
Syntax
'Declaration
Public Function EnumTransPublications As ArrayList
public ArrayList EnumTransPublications ()
public:
ArrayList^ EnumTransPublications ()
public ArrayList EnumTransPublications ()
public function EnumTransPublications () : ArrayList
Rückgabewert
An ArrayList of TransPublication objects.
Ausnahmen
Ausnahmetyp | Bedingung |
---|---|
ApplicationException | When the database does not exist. |
Hinweise
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).
This namespace, class, or member is supported only in version 2.0 of the .NET Framework.
Threadsicherheit
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Plattformen
Entwicklungsplattformen
Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.
Zielplattforme
Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.
Siehe auch
Verweis
ReplicationDatabase Class
ReplicationDatabase Members
Microsoft.SqlServer.Replication Namespace