User Tools

Site Tools


public:microsoft_sql_database

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
public:microsoft_sql_database [2019/08/19 15:01]
ronnie.chan [Restore]
public:microsoft_sql_database [2019/08/19 15:11]
ronnie.chan
Line 173: Line 173:
  
   - Launch SQL Server Management Studio in Windows. ​   - Launch SQL Server Management Studio in Windows. ​
-  - Select the SQL server you would like to connect to, and the corresponding authentication method, then click Connect to proceed. \\ {{public:​ahsay_wiki_module_microsoft_sql_requirement_13.png?​800}} +  - Select the SQL server you would like to connect to, and the corresponding authentication method, then click Connect to proceed. \\ {{public:​ahsay_wiki_module_microsoft_sql_requirement_13.png?​640}} 
-  - Expand the menu tree and select the desired database you would like to back up. \\ {{public:​ahsay_wiki_module_microsoft_sql_requirement_14.png?​800}} +  - Expand the menu tree and select the desired database you would like to back up. \\ {{public:​ahsay_wiki_module_microsoft_sql_requirement_14.png?​640}} 
-  - Right click the database name, then go to Tasks > Back Up. The Back Up Database dialog box shows. \\ {{public:​ahsay_wiki_module_microsoft_sql_requirement_15.png?​800}} +  - Right click the database name, then go to Tasks > Back Up. The Back Up Database dialog box shows. \\ {{public:​ahsay_wiki_module_microsoft_sql_requirement_15.png?​640}} 
-  - In the Source section, confirm the database name, then select Transaction Log in the Backup type drop-down menu. \\ {{public:​ahsay_wiki_module_microsoft_sql_requirement_16.png?​800}} +  - In the Source section, confirm the database name, then select Transaction Log in the Backup type drop-down menu. \\ {{public:​ahsay_wiki_module_microsoft_sql_requirement_16.png?​640}} 
-  - Select Disk or URL as the destination of the backup, then click Add to select a destination path. \\ {{public:​ahsay_wiki_module_microsoft_sql_requirement_17.png?​800}}  +  - Select Disk or URL as the destination of the backup, then click Add to select a destination path. \\ {{public:​ahsay_wiki_module_microsoft_sql_requirement_17.png?​640}}  
-  - After selecting the destination path, click OK twice to proceed. \\ {{public:​ahsay_wiki_module_microsoft_sql_requirement_18.png?​800}} +  - After selecting the destination path, click OK twice to proceed. \\ {{public:​ahsay_wiki_module_microsoft_sql_requirement_18.png?​640}} 
-  - Go to the Backup Options, then in the Backup set section, name the backup set and enter a description of the backup set if needed. \\ \\ Configure the Backup set to expire after a specified number of day or on a specified date. Set to 0 day if you do not want the backup set to expire \\ {{public:​ahsay_wiki_module_microsoft_sql_requirement_19.png?​800}} +  - Go to the Backup Options, then in the Backup set section, name the backup set and enter a description of the backup set if needed. \\ \\ Configure the Backup set to expire after a specified number of day or on a specified date. Set to 0 day if you do not want the backup set to expire \\ {{public:​ahsay_wiki_module_microsoft_sql_requirement_19.png?​640}} 
-  - Click OK to start the transaction log backup when you are done with all the necessary settings in the Back Up Database dialog box. \\ {{public:​ahsay_wiki_module_microsoft_sql_requirement_20.png?​800}}+  - Click OK to start the transaction log backup when you are done with all the necessary settings in the Back Up Database dialog box. \\ {{public:​ahsay_wiki_module_microsoft_sql_requirement_20.png?​640}}
 </​WRAP>​ </​WRAP>​
 </​WRAP>​ </​WRAP>​
Line 281: Line 281:
 ^ msdb    | Restore the msdb database if the master database has been rebuilt. ​    | ^ msdb    | Restore the msdb database if the master database has been rebuilt. ​    |
 ^ distribution ​    | For restore strategies of distribution database, please refer to the following online document from Microsoft for more details: [[http://​msdn.microsoft.com/​enus/​library/​ms152560.aspx]] ​   | ^ distribution ​    | For restore strategies of distribution database, please refer to the following online document from Microsoft for more details: [[http://​msdn.microsoft.com/​enus/​library/​ms152560.aspx]] ​   |
 +
 +===== Best Practice and Recommendation =====
 +The following are some best practice and recommendation we strongly recommend you to follow before you start any MS SQL Server backup and restore.
 +  - For VSS backup mode, it is suggested to set the backup schedule to a time when system activity is low to achieve the best possible performance. \\ \\
 +  - It is recommended to use ODBC backup mode for backup of database with a high volume of transaction,​ since such setup may require frequent backups. Transaction log backup (which is only supported by ODBC backup mode) can be performed periodically,​ and is less resource intensive than VSS based backup. \\ \\
 +  - For maximum data protection and restore options, it is recommended to configure:
 +    - At least one offsite or cloud destination
 +    - At least one local destination for fast recovery \\ \\
 +  - Perform test restores periodically to ensure your backup is set up and performed properly. Performing recovery test can also help identify potential issues or gaps in your recovery plan. It is important that you do not try to make the test easier, as the objective of a successful test is not to demonstrate that everything is flawless. There might be flaws identified in the plan throughout the test and it is important to identify those flaws. \\ \\
 +  - The Restore Raw File option is for advanced MS SQL Server administrator and should only be used if you have in-depth knowledge and understanding of your MS SQL Server, otherwise, it is not recommended to use this option as there are additional MS SQL techniques required to perform the manual restore. ​
 +
 +----
 +
 +===== Limitations ===== 
 +
 +==== Standalone Environment Only ====
 +AhsayOBM does not support backup of MS SQL server in cluster environment,​ only standalone environment is supported.
 +
 +==== VSS Backup Mode ====
 +  - Only support backup of database on local drive. ​ Database on network drive is not supported. \\ \\
 +  - VSS backup mode does not support transaction log backup, therefore, transaction log backup will have to be done manually. Or you can choose ODBC backup mode for transaction log backup. \\ \\
 +  - In order to truncate transaction logs, you have to perform a manual log truncation, which could be time consuming.
 +
 +==== File System for Database Snapshot ==== 
 +You cannot create database snapshots on FAT32 file system or RAW partitions. The sparse files used by database snapshots are provided by the NTFS file system.
 +
 +==== SQL Server Version ====
 +<WRAP indent>
 +=== Automated Restore Option ====
 +If you have chosen the automated restoration to the Original SQL server or Alternate SQL server of your selection, the restoration can only be done in a SQL server version that is the same as the one used for performing the backup. ​
 +
 +=== Manual Raw-file Restore Option ===
 +If you have chosen to restore the raw file, the raw database file(s) can be manually restored to the same or newer SQL server version that you used to perform the backup. ​
 +</​WRAP>​
 +
 +==== Restoration to Other SQL Server ====
 +  - If you would like to restore database to an alternate SQL server, you can only choose to restore one database to restore at a time.\\ \\
 +  - If you would like to restore database to an alternate SQL server, make sure you choose to restore raw file by enabling the checkbox Restore raw file.
 +
 +----
 +
 +===== Backup Modes =====
 +You can choose from one of the two backup modes when creating a backup set for MS SQL server. The information below provides you with more details on each backup mode.
 +<​code>​
 +NOTE
 +For MS SQL server backup sets which are upgraded from v6, the default backup mode will be ODBC.
 +</​code>​
 +
 +==== VSS Mode ====
 +VSS-based backup utilizing the Microsoft SQL Server VSS Writer to obtain a consistent snapshot of the MS SQL databases, no spooling / staging of database file(s) is required during the backup process.
 +
 +{{public:​ahsay_wiki_module_microsoft_sql_requirement_8.png?​800}}
  
 ===== Documentation ===== ===== Documentation =====
public/microsoft_sql_database.txt · Last modified: 2022/11/28 11:06 by kirk.lim

Page Tools