共用方式為


MergeSubscriberMonitor.GetSessionsSummaryDataSet 方法

Returns summary information on all Merge Agent sessions using a DataSet object.

命名空間:  Microsoft.SqlServer.Replication
組件:  Microsoft.SqlServer.Rmo (在 Microsoft.SqlServer.Rmo.dll 中)

語法

'宣告
Public Function GetSessionsSummaryDataSet As DataSet
'用途
Dim instance As MergeSubscriberMonitor 
Dim returnValue As DataSet 

returnValue = instance.GetSessionsSummaryDataSet()
public DataSet GetSessionsSummaryDataSet()
public:
DataSet^ GetSessionsSummaryDataSet()
member GetSessionsSummaryDataSet : unit -> DataSet
public function GetSessionsSummaryDataSet() : DataSet

傳回值

型別:System.Data.DataSet
A DataSet object.

備註

Call the GetSessionsSummary method to return the same data as an array of MergeSessionSummary objects.

The GetSessionsSummaryDataSet() method returns DataRow objects for up to five sessions.

Calling the GetSessionsSummaryDataSet method is equivalent to executing sp_replmonitorhelpmergesession (Transact-SQL) at the Subscriber.

The GetSessionsSummaryDataSet method can be executed by members of the db_owner or replmonitor fixed database roles in the distribution database, when connected to the Distributor, or in the subscription database, when connected to the Subscriber.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

請參閱

參考

MergeSubscriberMonitor 類別

GetSessionsSummaryDataSet 多載

Microsoft.SqlServer.Replication 命名空間