Recovery Models In MSSQL Server

We have 3 recovery models in MSSQL server

1.Simple
2.Full
3.Bulk Log recovery

1.Simple-
Point in time recovery is not possible in this recovery model as logs will be truncated automatically and there are no log backups available due to automatic log truncation

we can use checkpoint command to truncate the log file manually

2.Full-
Point in time recovery of database is possible and most of the production databases will be running in this model to recover in case disasters and we can take log backups

Log file can be truncated using log backup

3.Bulk Log Recovery-
we will use this model when we are doing any bulk load operations like bulk insert or delete as it will avoid log issues and  bulk operation is logged as single entry in log file to avoid the log file issues during this activity 

Comments

Popular posts from this blog

How to read MSDTC Trace logs

CDC Monitoring

Error - Exclusive access could not be obtained because the database is in use. Msg 3101, Level 16, State 1, Line 3 Exclusive access could not be obtained because the database is in use. Msg 3013, Level 16, State 1, Line 3 RESTORE DATABASE is terminating abnormally.