Compartir a través de


Restore Miembros

The Restore object provides programmatic access to restore operations.

El tipo Restore expone los siguientes miembros.

Constructores

  Nombre Descripción
Método publico Restore Initializes a new instance of the Restore class.

Principio

Métodos

  Nombre Descripción
Método publico Abort Terminates a running backup or restore operation. (Se hereda de BackupRestoreBase).
Método publico ClearSuspectPageTable Deletes entries in the suspect page table.
Método publico Equals (Se hereda de Object).
Método protegido ExecuteSql Executes a batch of Transact-SQL statements that does not expect a returned results set on the specified instance of SQL Server. (Se hereda de BackupRestoreBase).
Método protegido ExecuteSqlAsync Executes a batch of Transact-SQL statements asynchronously that does not expect a returned results set on the specified instance of SQL Server. (Se hereda de BackupRestoreBase).
Método protegido ExecuteSqlWithResults Executes a batch of Transact-SQL statements that expects one or more returned results sets on the specified instance of SQL Server. (Se hereda de BackupRestoreBase).
Método protegido Finalize (Se hereda de Object).
Método protegido GetDevicesScript (Se hereda de BackupRestoreBase).
Método publico GetHashCode (Se hereda de Object).
Método publico GetType (Se hereda de Object).
Método protegido IsStringValid Verifies whether the specified string is valid. (Se hereda de BackupRestoreBase).
Método protegido MemberwiseClone (Se hereda de Object).
Método publico ReadBackupHeader Reads the backup header and returns information about the media contents.
Método publico ReadFileList Returns the list of database files on the targeted media.
Método publico ReadMediaHeader Reads the media header and returns the media header values.
Método publico ReadSuspectPageTable Returns the suspect page table for the targeted instance of SQL Server. 
Método publico Script Generates a Transact-SQL script that can be used to re-create the restore operation. 
Método publico SetMediaPassword(SecureString) Sets the password for a media set. (Se hereda de BackupRestoreBase).
Método publico SetMediaPassword(String) Sets the password for a media set. (Se hereda de BackupRestoreBase).
Método publico SetPassword(SecureString) Sets the password for a backup set. (Se hereda de BackupRestoreBase).
Método publico SetPassword(String) Sets the password for a backup set. (Se hereda de BackupRestoreBase).
Método publico SqlRestore Performs a restore operation.
Método publico SqlRestoreAsync Performs a restore operation asynchronously.
Método publico SqlVerify(Server) Checks the media on the instance of SQL Server that is represented by the specified Server object. 
Método publico SqlVerify(Server, Boolean) Checks the media on instance of SQL Server that is represented by the specified Server object and loads backup history information into the history tables.
Método publico SqlVerify(Server, String%) Checks the media on the instance of SQL Server that is represented by the specified Server object and returns an error message.
Método publico SqlVerify(Server, Boolean, String%) Checks the media on the instance of SQL Server that is represented by the specified Server object, loads backup history information into the history tables, and returns an error message.
Método publico SqlVerifyAsync(Server) Checks the media on the instance of SQL Server that is represented by the specified Server object asynchronously.
Método publico SqlVerifyAsync(Server, Boolean) Checks the media on the instance of SQL Server that is represented by the specified Server object asynchronously and loads backup history information into the history tables.
Método publico SqlVerifyLatest(Server) Verifies the most recent backup but does not restore it, and checks to see that the backup set is complete and the entire backup is readable.
Método publico SqlVerifyLatest(Server, SqlVerifyAction) Verifies the most recent backup with the specified action, and checks to see that the backup set is complete and the entire backup is readable.
Método publico SqlVerifyLatest(Server, String%) Verifies the most recent backup but does not restore it, checks to see that the backup set is complete and the entire backup is readable, and returns an error message.
Método publico SqlVerifyLatest(Server, SqlVerifyAction, String%) Verifies the most recent backup with the specified action, checks to see that the backup set is complete and the entire backup is readable, and returns an error message.
Método publico ToString (Se hereda de Object).
Método publico Wait Waits for the current backup or restore operation to complete before moving on to the next process. (Se hereda de BackupRestoreBase).

Principio

Campos

  Nombre Descripción
Campo protegido currentAsyncOperation (Se hereda de BackupRestoreBase).
Campo protegido m_BackupAction (Se hereda de BackupRestoreBase).
Campo protegido m_LogTruncation (Se hereda de BackupRestoreBase).
Campo protegido m_RestoreAction (Se hereda de BackupRestoreBase).
Campo público VerifyComplete Specifies the VerifyCompleteEventHandler.

Principio

Propiedades

  Nombre Descripción
Propiedad pública Action Gets or sets the type of restore to be performed.
Propiedad pública AsyncStatus Gets the asynchronous status of a backup or restore process. (Se hereda de BackupRestoreBase).
Propiedad pública BlockSize Gets or sets the physical block size of the backup or restore, in bytes. (Se hereda de BackupRestoreBase).
Propiedad pública BufferCount Gets or sets the total number of I/O buffers to be used for the backup or restore operation. (Se hereda de BackupRestoreBase).
Propiedad pública Checksum Gets or sets a Boolean property value that determines whether a checksum value is calculated during backup or restore operations. (Se hereda de BackupRestoreBase).
Propiedad pública ClearSuspectPageTableAfterRestore Gets or sets a Boolean value that determines whether entries in the suspect page table will be deleted following the restore operation.
Propiedad pública ContinueAfterError Gets or sets a Boolean property value that determines whether the backup or restore continues after a checksum error occurs. (Se hereda de BackupRestoreBase).
Propiedad pública Database Gets or sets the database on which the backup or restore operation runs. (Se hereda de BackupRestoreBase).
Propiedad pública DatabaseFileGroups Gets the SQL Server file groups targeted by the backup or restore operation. (Se hereda de BackupRestoreBase).
Propiedad pública DatabaseFiles Gets the operating system files targeted by the backup or restore operation. (Se hereda de BackupRestoreBase).
Propiedad pública Devices Gets the backup devices specified for the backup or restore operation. (Se hereda de BackupRestoreBase).
Propiedad pública FileNumber Gets or sets the index number used to identify the targeted backup set on the backup medium.
Propiedad pública KeepReplication Gets or sets a Boolean property value that specifies whether to maintain a replication configuration during a restore operation.
Propiedad pública MaxTransferSize Gets or sets the maximum number of bytes to be transferred between the backup media and the instance of SQL Server. (Se hereda de BackupRestoreBase).
Propiedad pública MediaName Gets or sets the name used to identify a particular media set. (Se hereda de BackupRestoreBase).
Propiedad pública NoRecovery Gets or sets a Boolean property value that determines whether the tail of the log is backed up and whether the database is restored into the Restoring state. (Se hereda de BackupRestoreBase).
Propiedad pública NoRewind Gets or sets a Boolean property value that determines whether Microsoft SQL Server will keep the tape open after the backup or restore operation. (Se hereda de BackupRestoreBase).
Propiedad pública Offset Gets or sets the array of page addresses to be restored.
Propiedad pública Partial Gets or sets a Boolean property value that specifies whether a partial or full restore operation will be performed.
Propiedad pública PercentCompleteNotification Gets or sets the percentage interval for PercentCompleteEventHandler event handler calls. (Se hereda de BackupRestoreBase).
Propiedad pública RelocateFiles Gets or sets the array of database logical file names and operating system physical file names used to redirect database storage when a database is restored to a new physical location.
Propiedad pública ReplaceDatabase Gets or sets a Boolean value that specifies whether a restore operation creates a new image of the restored database.
Propiedad pública Restart Gets or sets a Boolean property value that determines whether the backup or restore operation will restart if it is interrupted. (Se hereda de BackupRestoreBase).
Propiedad pública RestrictedUser Gets or sets a Boolean property value that specifies whether access to the restored database is restricted to members of the db_owner fixed database role and the dbcreator and sysadmin fixed server roles.
Propiedad pública StandbyFile Gets or sets the name of an undo file that is used as part of the imaging strategy for an instance of SQL Server.
Propiedad pública StopAtMarkAfterDate 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.
Propiedad pública StopAtMarkName 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.
Propiedad pública 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.
Propiedad pública StopBeforeMarkName Gets or sets the mark name to be used in conjunction with the date specified by StopBeforeMarkAfterDate to determine the stopping point of the recovery operation.
Propiedad pública ToPointInTime Gets or sets the endpoint for database log restoration.
Propiedad pública UnloadTapeAfter Gets or sets a Boolean property value that determines whether tape media are rewound and unloaded after the backup or restore operation completes. (Se hereda de BackupRestoreBase).

Principio

Eventos

  Nombre Descripción
Evento público Complete Occurs when the backup or restore operation completes. (Se hereda de BackupRestoreBase).
Evento público Information Occurs when any informational message is issued by Microsoft SQL Server that cannot be handled by the Complete NextMedia or PercentComplete events. (Se hereda de BackupRestoreBase).
Evento público NextMedia Occurs when the backup or restore operation exhausts the medium in a target device. (Se hereda de BackupRestoreBase).
Evento público PercentComplete Occurs when a backup or restore operation reaches a completion unit. (Se hereda de BackupRestoreBase).

Principio