Compartir a través de


Restore.StopAtMarkName Propiedad

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.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.SmoExtended (en Microsoft.SqlServer.SmoExtended.dll)

Sintaxis

'Declaración
Public Property StopAtMarkName As String 
    Get 
    Set
'Uso
Dim instance As Restore 
Dim value As String 

value = instance.StopAtMarkName

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

Valor de la propiedad

Tipo: System.String
A String that specifies the mark name.

Comentarios

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.

Ejemplos

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

VB

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

PowerShell

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

Vea también

Referencia

Restore Clase

Espacio de nombres Microsoft.SqlServer.Management.Smo

Otros recursos

RESTORE (Transact-SQL)

Realizar copias de seguridad y restaurar bases de datos de SQL Server