Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit a7d58da

Browse files
authored
Merge pull request #23318 from MicrosoftDocs/FromPublicRepo
Confirm merge from FromPublicRepo to main to sync with https://github.com/MicrosoftDocs/sql-docs (branch live)
2 parents 6217fc5 + 3182e6a commit a7d58da

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docs/t-sql/statements/restore-statements-arguments-transact-sql.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@ DATABASE_SNAPSHOT **=**_database\_snapshot\_name_
216216
**Supported by:** [RESTORE VERIFYONLY](../../t-sql/statements/restore-statements-verifyonly-transact-sql.md)
217217

218218
Specifies that the restore operation loads the information into the `msdb` history tables. The LOADHISTORY option loads information, for the single backup set being verified, about [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] backups stored on the media set to the backup and restore history tables in the `msdb` database. For more information about history tables, see [System Tables (Transact-SQL)](../../relational-databases/system-tables/system-tables-transact-sql.md).
219+
220+
Be aware that using LOADHISTORY for backups which already exist in the `msdb` history tables will add the same information with a new backup_set_id. Further, if you use LOADHISTORY to recreate backup history in `msdb`, either on a different server or after it was deleted from the original server, it is recommended to run the restore commands for the backups in the order in which they were taken. This ensures the LSN chain remains intact and the SSMS restore wizard will correctly read the backup history to generate the correct restore sequence. Use of LOADHISTORY with backup history recreated out of order can result in an error when trying to restore (“Unable to create restore plan due to break in the LSN chain. (Microsoft.SqlServer.SmoExtended)”).
221+
219222

220223
### \<general_WITH_options> [ ,...n ]
221224
The following general WITH options are all supported in RESTORE DATABASE and RESTORE LOG statements. Some of these options are also supported by one or more auxiliary statements, as noted.

0 commit comments

Comments
 (0)