Quantcast
Channel: How do you clear the SQL Server transaction log? - Stack Overflow
Viewing all articles
Browse latest Browse all 22

Answer by gautam saraswat for How do you clear the SQL Server transaction log?

$
0
0
  1. Backup DB
  2. Detach DB
  3. Rename Log file
  4. Attach DB (while attaching remove renamed .ldf (log file).Select it and remove by pressing Remove button)
  5. New log file will be recreated
  6. Delete Renamed Log file.

This will work but it is suggested to take backup of your database first.


Viewing all articles
Browse latest Browse all 22

Trending Articles



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