Changing database recovery model
In this recipe, we will explore how to change SQL Server recovery model using PowerShell.
We will use
AdventureWorks2014 in this exercise and change the recovery model from
Simple. Feel free to substitute this with a database of your choice.
Check what SQL Server recovery model your instance is set to. Using SSMS, open your Object Explorer. Right-click on the database you chose, click on Properties, and select Options:
If your database is set to either Simple or Bulk-logged, change this to Full and click on OK. Since we will use
AdventureWorks2014 in later exercises, we need to change this recovery ...