Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

Managing SQL Transaction Logs

$
0
0

So I have a DB that is about 14.7GB in size, and the T-log was almost 600gb last week. We were starting to see performance issues over the past month and Ii assumed it was because thee log file was growing like crazy. There are no maintenance plans on the DB and I back it up manually weekly.

So I called up the company who makes the software that uses the DB and they shrank the log from 600GB to about 79MB. They've done this before in the past, but I want to understand the best way to keep this log file from getting out of control.


What they did was changed it from Full to Simple, then ran this script, btw the asterisks are the DB name I starred out.

DBCC SHRINKFILE(********_log, 10);

Then he proceeded to change it back to Full. I have noticed over the past week that the T-Log size has not grown AT ALL since he did this... So, please help...


Viewing all articles
Browse latest Browse all 4871

Trending Articles



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