Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
StopAtMarkName Property

Restore.StopAtMarkName Property

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

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

public string StopAtMarkName { get; set; }

Property Value

Type: String
A String that specifies the mark name.

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 at which the restore operation halts.


Dim rs As Restore
rs = New Restore
rs.StopAtMarkName = "ListPriceUpdate"


$rs = new-object Microsoft.SqlServer.Management.Smo.Restore
$rs.StopAtMarkName = "ListPriceUpdate"

Community Additions

© 2015 Microsoft