- Perform a full backup of your database. Don't skip this. Really.
- Change the backup method of your database to "Simple"
- Open a query window and enter "checkpoint" and execute
- Perform another backup of the database
- Change the backup method of your database back to "Full" (or whatever it was, if it wasn't already Simple)
- Perform a final full backup of the database.
- Run below queries one by one
USE Database_Name
select name,recovery_model_desc from sys.databases
ALTER DATABASE Database_Name SET RECOVERY simple
DBCC SHRINKFILE (Database_Name_log , 1)
Không có nhận xét nào:
Đăng nhận xét