Restore.StopAtMarkAfterDate 属性

Gets or sets the date to be used in conjunction with the mark name specified by StopAtMarkName to determine the stopping point of the recovery operation.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.SmoExtended(在 Microsoft.SqlServer.SmoExtended.dll 中)

语法

声明
Public Property StopAtMarkAfterDate As String 
    Get 
    Set
用法
Dim instance As Restore 
Dim value As String 

value = instance.StopAtMarkAfterDate

instance.StopAtMarkAfterDate = value
public string StopAtMarkAfterDate { get; set; }
public:
property String^ StopAtMarkAfterDate {
    String^ get ();
    void set (String^ value);
}
member StopAtMarkAfterDate : string with get, set
function get StopAtMarkAfterDate () : String 
function set StopAtMarkAfterDate (value : String)

属性值

类型:System.String
A String that specifies the stop at date.

注释

Specifies recovery to the first mark matching the name specified in StopAtMarkName that occurs exactly at or after the specified time. Recovery includes the transaction that contains the mark. If the StopAtMarkAfterDate value is not set, recovery stops at the first mark with the specified name.

示例

The following code example sets a transaction mark name and date at which the restore operation halts.

VB

Dim rs As Restore
rs = New Restore
rs.StopAtMarkName = "ListPriceUpdate"
rs.StopAtMarkAfterDate = "Apr 15, 2020 12:00 AM"

PowerShell

$rs = new-object Microsoft.SqlServer.Management.Smo.Restore
$rs.StopAtMarkName = "ListPriceUpdate"
$rs.StopAtMarkAfterDate = "Apr 15, 2020 12:00 AM"

请参阅

参考

Restore 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

RESTORE (Transact-SQL)

SQL Server 数据库的备份和还原