Restore.StopBeforeMarkAfterDate Restore.StopBeforeMarkAfterDate Restore.StopBeforeMarkAfterDate Property


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

 property System::String ^ StopBeforeMarkAfterDate { System::String ^ get(); void set(System::String ^ value); };
public string StopBeforeMarkAfterDate { get; set; }
Public Property StopBeforeMarkAfterDate As String
Property Value

A String that specifies the stop before date.


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


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


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


Specifies recovery to the first mark matching the name specified in StopBeforeMarkName that occurs before the specified time. Recovery does not include the transaction that contains the mark. If the StopBeforeMarkName value is not set, recovery stops at the first mark with the specified name.

Applies to