This article describes how to change the recovery model of an MS SQL database through SQL Server Management Studio and Transact-SQL. A recovery model database property tells SQL Server how you want to log the transaction logs. Mainly there are three recovery models in MS SQL Server.
- Simple
- Full
- Bulk-logged
Change the recovery model Using SQL Server Management Studio
1. Connect to MS SQL Server through SQL Server Management Studio. You can refer to the following tutorials to connect to MS SQL Server.
- How do I connect to MSSQL Server 2008 from SQL Server Management Studio?
- How do I connect to MSSQL Server 2012 from SQL Server Management Studio?
2. Once connected to Microsoft SQL Server Database Engine, click the SQL server name on the left-hand side in the Object Explorer pane to expand the server tree.
3. Expand Databases and right-click on the database whose recovery model you wish to change. Right-click the database, and then click Properties which opens the Database Properties dialog box.
4. Under Select a page pane, click Options. You will see the current recovery model displayed under the Recovery model list box.
5. You can change the recovery model from the drop-down and Click OK.
Change the recovery model using Transact-SQL
1. Connect to the Database Engine.
2. From the Standard bar, click New Query.
3. Type the following statement in the query window and click Execute.
USE Your-database-name ;
ALTER DATABASE Your-database-name SET RECOVERY FULL ;