Quantcast
Viewing all articles
Browse latest Browse all 4871

Shrink SQL server logs

We are getting the following message when trying to shrink our transaction log.

Msg 155, Level 15, State 1, Line 2
'TRUNCATE_ONLY' is not a recognized BACKUP option.
Cannot shrink log file 2 (mdb_log) because the logical log file located at the end of the file is in use.

I found online that the solution is to change the recovery mode to SIMPLE, shrink log files and then change to the FULL recovery mode.

Will this work and can I change the recovery mode to simple with the database online?


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>