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

Shrinking SQL DB Logs & Maintaining My Databases?

$
0
0

I am NOT a DBA, but I do play one at work... along with being a system admin, system engineer, backup specialist, blah blah. :)

So, I am trying to get a handle on 3 MS SQL Servers running SQL server 2005, 2008, and 2014 with about 40 databases on each server. I don't want to half-ass this, even though I'm new to it. I want it done correct now, so it doesn't cause problems later. First thing I have done is add these servers to a Nightly backup via Veeam.

If there were maintenance plans, I don't think their working, as I have seen logs grow to 300GB using up all of the hard drive space, causing all of the databases to go down until I shrink the log(s). Right now, I can see a 32GB log file for a 958MB database. Is this normal?

To shrink the log files, I have been using:

backup log MY_DATABASE with truncate_only --the database name

...

Viewing all articles
Browse latest Browse all 4871

Trending Articles



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