Membros Restore

The Restore object provides programmatic access to restore operations.

O tipo Restore expõe os seguintes membros.

Construtores

  Nome Descrição
Método público Restore Initializes a new instance of the Restore class.

Início

Métodos

  Nome Descrição
Método público Abort Terminates a running backup or restore operation. (Herdado de BackupRestoreBase.)
Método público ClearSuspectPageTable Deletes entries in the suspect page table.
Método público Equals (Herdado 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. (Herdado 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. (Herdado 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. (Herdado de BackupRestoreBase.)
Método protegido Finalize (Herdado de Object.)
Método protegido GetDevicesScript (Herdado de BackupRestoreBase.)
Método público GetHashCode (Herdado de Object.)
Método público GetType (Herdado de Object.)
Método protegido IsStringValid Verifies whether the specified string is valid. (Herdado de BackupRestoreBase.)
Método protegido MemberwiseClone (Herdado de Object.)
Método público ReadBackupHeader Reads the backup header and returns information about the media contents.
Método público ReadFileList Returns the list of database files on the targeted media.
Método público ReadMediaHeader Reads the media header and returns the media header values.
Método público ReadSuspectPageTable Returns the suspect page table for the targeted instance of SQL Server. 
Método público Script Generates a Transact-SQL script that can be used to re-create the restore operation. 
Método público SetMediaPassword(SecureString) Sets the password for a media set. (Herdado de BackupRestoreBase.)
Método público SetMediaPassword(String) Sets the password for a media set. (Herdado de BackupRestoreBase.)
Método público SetPassword(SecureString) Sets the password for a backup set. (Herdado de BackupRestoreBase.)
Método público SetPassword(String) Sets the password for a backup set. (Herdado de BackupRestoreBase.)
Método público SqlRestore Performs a restore operation.
Método público SqlRestoreAsync Performs a restore operation asynchronously.
Método público SqlVerify(Server) Checks the media on the instance of SQL Server that is represented by the specified Server object. 
Método público 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 público 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 público 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 público SqlVerifyAsync(Server) Checks the media on the instance of SQL Server that is represented by the specified Server object asynchronously.
Método público 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 público 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 público 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 público 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 público 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 público ToString (Herdado de Object.)
Método público Wait Waits for the current backup or restore operation to complete before moving on to the next process. (Herdado de BackupRestoreBase.)

Início

Campos

  Nome Descrição
Campo protegido currentAsyncOperation (Herdado de BackupRestoreBase.)
Campo protegido m_BackupAction (Herdado de BackupRestoreBase.)
Campo protegido m_LogTruncation (Herdado de BackupRestoreBase.)
Campo protegido m_RestoreAction (Herdado de BackupRestoreBase.)
Campo público VerifyComplete Specifies the VerifyCompleteEventHandler.

Início

Propriedades

  Nome Descrição
Propriedade pública Action Gets or sets the type of restore to be performed.
Propriedade pública AsyncStatus Gets the asynchronous status of a backup or restore process. (Herdado de BackupRestoreBase.)
Propriedade pública BlockSize Gets or sets the physical block size of the backup or restore, in bytes. (Herdado de BackupRestoreBase.)
Propriedade pública BufferCount Gets or sets the total number of I/O buffers to be used for the backup or restore operation. (Herdado de BackupRestoreBase.)
Propriedade pública Checksum Gets or sets a Boolean property value that determines whether a checksum value is calculated during backup or restore operations. (Herdado de BackupRestoreBase.)
Propriedade 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.
Propriedade pública ContinueAfterError Gets or sets a Boolean property value that determines whether the backup or restore continues after a checksum error occurs. (Herdado de BackupRestoreBase.)
Propriedade pública Database Gets or sets the database on which the backup or restore operation runs. (Herdado de BackupRestoreBase.)
Propriedade pública DatabaseFileGroups Gets the SQL Server file groups targeted by the backup or restore operation. (Herdado de BackupRestoreBase.)
Propriedade pública DatabaseFiles Gets the operating system files targeted by the backup or restore operation. (Herdado de BackupRestoreBase.)
Propriedade pública Devices Gets the backup devices specified for the backup or restore operation. (Herdado de BackupRestoreBase.)
Propriedade pública FileNumber Gets or sets the index number used to identify the targeted backup set on the backup medium.
Propriedade pública KeepReplication Gets or sets a Boolean property value that specifies whether to maintain a replication configuration during a restore operation.
Propriedade pública MaxTransferSize Gets or sets the maximum number of bytes to be transferred between the backup media and the instance of SQL Server. (Herdado de BackupRestoreBase.)
Propriedade pública MediaName Gets or sets the name used to identify a particular media set. (Herdado de BackupRestoreBase.)
Propriedade 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. (Herdado de BackupRestoreBase.)
Propriedade 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. (Herdado de BackupRestoreBase.)
Propriedade pública Offset Gets or sets the array of page addresses to be restored.
Propriedade pública Partial Gets or sets a Boolean property value that specifies whether a partial or full restore operation will be performed.
Propriedade pública PercentCompleteNotification Gets or sets the percentage interval for PercentCompleteEventHandler event handler calls. (Herdado de BackupRestoreBase.)
Propriedade 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.
Propriedade pública ReplaceDatabase Gets or sets a Boolean value that specifies whether a restore operation creates a new image of the restored database.
Propriedade pública Restart Gets or sets a Boolean property value that determines whether the backup or restore operation will restart if it is interrupted. (Herdado de BackupRestoreBase.)
Propriedade 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.
Propriedade 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.
Propriedade 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.
Propriedade 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.
Propriedade 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.
Propriedade 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.
Propriedade pública ToPointInTime Gets or sets the endpoint for database log restoration.
Propriedade 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. (Herdado de BackupRestoreBase.)

Início

Eventos

  Nome Descrição
Evento público Complete Occurs when the backup or restore operation completes. (Herdado 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. (Herdado de BackupRestoreBase.)
Evento público NextMedia Occurs when the backup or restore operation exhausts the medium in a target device. (Herdado de BackupRestoreBase.)
Evento público PercentComplete Occurs when a backup or restore operation reaches a completion unit. (Herdado de BackupRestoreBase.)

Início