In this post, I am sharing one basic ALTER command to change the recovery model of a SQL Server Database.
We can also change this recovery model using database properties of SQL Server Management Studio.
I always prefer to use T-SQL script to perform any kind of database administrator task because once I have tried to change the recovery model using database properties of SSMS, and my database had crashed because of any reason.
We can do using ALTER DATABASE option and most importantly, we should provide WITH NO_WAIT option.
-- FULL Recovery Model
ALTER DATABASE [Database_Name] SET RECOVERY FULL WITH NO_WAIT
-- SIMPLE Recovery Model
ALTER DATABASE [Database_Name] SET RECOVERY SIMPLE WITH NO_WAIT
-- Bulk Logged Recovery Model
ALTER DATABASE [Database_Name] SET RECOVERY BULK_LOGGED WITH NO_WAIT
Please share your ideas and opinions about this topic with me, your contribution will add true value to this topic.
If anyone has doubts on this topic then please do let me know by leaving comments or send me an email.
If you like this post, then please share it with others.
Please follow dbrnd.com, I will share my experience towards the success of Database Research and Development Activity.
I put up a post every day, please keep reading and learning.
Discover Yourself, Happy Blogging !
Anvesh M. Patel.