Restore::StopAtMarkAfterDate Property


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.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)

property String^ StopAtMarkAfterDate {
	String^ get();
	void set(String^ value);

Property Value

Type: 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.


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


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