SQL Server – Change Recovery Mode from Simple to Full with Active Users

recovery-modelsql server

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

Best Answer

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)!