December 2017
Intermediate to advanced
434 pages
10h 14m
English
Every database has a property called recovery model. The recovery model determines how transactions are logged, and for how long time committed transactions will be stored in the transaction log. The recovery model is set by T-SQL command, ALTER DATABASE:
-- setting full recovery modelALTER DATABASE <database_name> SET RECOVERY FULL
The recovery model has three possible options:
When the recovery model is set to SIMPLE, SQL Server clears transactions from the transaction log when they are checkpoint. This approach leads to a relatively small transaction log file, which seems to be a good behavior, but, on the other hand, the transaction log does not hold transaction descriptions so we are not able ...
Read now
Unlock full access