Question

Can you change recovery mode from simple to full with users working on the server?

While the server is changing the mode is the work of the users interrupted? If so, for how long.

Version: SQL server 2016

Thank you very much

Was it helpful?

Solution

You can - as long as there's no running transaction on that database, or you run the alter statement using WITH ROLLBACK IMMEDIATE. Be careful with this clause as it will rollback nonqualified transactions - see here for a human-readable explanation.

Also, remember to take a full backup after you change the recovery model from simple to full, or the change won't really take place (info here)!

OTHER TIPS

Yes you can. However I do prefer to do this during a maintainence window or during off hours with less load. Best bet to start from all lower env to test and go all the way to prod to see if you find any impacts.

From Microsoft Docs as a note in View or Change the Recovery Model of a Database (SQL Server)

Note! If you switch to the full recovery model during a bulk operation, bulk operations logging changes from minimal logging to full logging, and vice versa

After changing you also might want to revisit the backup strategy and change as per RTO and RPO

Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange
scroll top