语言

PullSubscription.LastAgentDateTime 属性

定义

它会显示订阅最后一次同步的日期和时间。

public:
 property System::String ^ LastAgentDateTime { System::String ^ get(); };
public string LastAgentDateTime { get; }
member this.LastAgentDateTime : string
Public ReadOnly Property LastAgentDateTime As String

属性值

一个 String 代表日期和时间的数值。

注解

日期和时间数据格式为 YYYYMMDD hh:mm:ss.fff, 其中

  • YYYY 用四位数表示年份。

  • MM 表示月份,用两位数表示(零填充)。

  • DD 代表月份的日期,用两位数表示(零填充)。

  • HH 用两位数字表示整点,是二十四小时制(零填充)。

  • MM 表示分钟,用两位数表示(零填充)。

  • SS 表示两位数字的秒(零填充)。

  • FFF 表示秒的分数部分,用三位数字表示。

例如,18:12:00.000 20040121值被解释为2004年1月21日下午6:12。

LastAgentDateTime该属性只能由订阅者中固定服务器角色的成员sysadmin或订阅数据库中固定数据库角色的成员db_owner检索。

取回 LastAgentDateTime 该属性等同于执行 sp_helppullsubscription(Transact-SQL)sp_helpmergepullsubscription(Transact-SQL)

适用于