This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computing:windows:mssql_backup [2022/02/10 07:11] gcooper |
computing:windows:mssql_backup [2022/02/10 07:42] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Microsoft SQL Server Backup ====== | ====== Microsoft SQL Server Backup ====== | ||
+ | |||
+ | **SQL Backup Background**: | ||
**Download SQL Server Management Studio**: https:// | **Download SQL Server Management Studio**: https:// | ||
- | <note tip>In general, it is simpler and easier to restore a complete backup (single file) than a differential (multiple file) backup. If your backup window and storage permit, you might choose to implement full, complete, single file backups every night.</ | + | <note tip>In general, it is **simpler and easier to restore a complete backup** (single file) than a differential |
===== Database Restore ===== | ===== Database Restore ===== | ||
- | <note important> | + | **[[https:// |
+ | |||
+ | <note important> | ||
+ | |||
+ | <note tip>It is convenient to use the **Microsoft SQL Server Management Studio** to perform the actual database recovery.</ | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | ==== MSSQL Management Studio ==== | ||
- | <note tip>It is convenient to use the Microsoft SQL Server Management Studio to perform the actual database recovery.</note> | + | **Restore a Database Backup Using SSMS**: https:// |
- | [[https:// | + | ==== Transact-SQL ==== |
- | It is convenient to use the Microsoft SQL Server Management Studio to perform the actual | + | |RESTORE DATABASE database_name FROM full_database_backup WITH NORECOVERY |complete |
+ | |RESTORE DATABASE database_name FROM differential_backup WITH NORECOVERY | ||
+ | |RESTORE DATABASE database_name FROM log_backup WITH NORECOVERY | ||
+ | |RESTORE DATABASE database_name FROM log_backup WITH NORECOVERY | ||
+ | |... |in chronological order | | ||
+ | |RESTORE DATABASE database_name FROM log_backup WITH NORECOVERY | ||
+ | |RESTORE DATABASE database_name WITH RECOVERY | ||
===== Database Recovery Models ===== | ===== Database Recovery Models ===== |