Partager via


Propriété Restore.StopBeforeMarkAfterDate

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.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.SmoExtended (en Microsoft.SqlServer.SmoExtended.dll)

Syntaxe

'Déclaration
Public Property StopBeforeMarkAfterDate As String 
    Get 
    Set
'Utilisation
Dim instance As Restore 
Dim value As String 

value = instance.StopBeforeMarkAfterDate

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

Valeur de propriété

Type : System.String
A String that specifies the stop before date.

Notes

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.

Exemples

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

VB

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

PowerShell

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

Voir aussi

Référence

Restore Classe

Espace de noms Microsoft.SqlServer.Management.Smo

Autres ressources

RESTORE (Transact-SQL)

Sauvegarde et restauration des bases de données SQL Server