Full recovery model is SQL server is
an option, which helps in keeping all the data transactions in the transaction
log. The entire transaction will be held until there is a transaction log backup
created. The idea is pretty simple, wherein the entire transactions are logged
into the transaction log, which then gets moved to the primary file or
secondary file accordingly. Usually, keeping in full recovery option can lead
to increased space, since the transaction log contains all the transactions.
Further, to avoid the same, there is a need to create log backup to reduce the
size of transactions with held in the transaction log.
To recovery from disasters, full
recovery helps in point in time recovery. One advantage of full recovery model
in SQL server is that, in case if there are any failure in the transaction log,
the entire process gets cancelled or revoked. In SQL Server, when a database is
created, by default full recovery model is set.
Some of the reasons to Full Recovery
model:
- Point-in-time recovery is possible with full recovery model
- Very huge transactions was held and the data is very critical
- Protection against data loss
T/SQL script to set the database to simple recovery model
ALTER DATABASE
<Database_Name>
SET RECOVERY FULL
Follow
the below steps in SQL Server Management Studio graphic user interface:
- Right on the respective database and click “properties”
- Select “options” from “Select a page” side bar
- A drop is seen under “Recovery Model”. Select “Full” from the drop down.
- Click “OK” to set the database to simple recovery model
The
screenshot for the same tagged below:
You may also need:
"Set Database To Bulk-logged Recovery Model in SQL Server"
"Set Database To Simple Recovery Model in SQL Server"
"Set Database To Bulk-logged Recovery Model in SQL Server"
"Set Database To Simple Recovery Model in SQL Server"
0 comments:
Post a Comment