HiveBrain v1.2.0
Get Started
← Back to all entries
patternsqlModerate

SQL Server / SSMS taking up lots of disk space

Submitted by: @import:stackexchange-dba··
0
Viewed 0 times
spacessmsdisksqllotsservertaking

Problem

I installed SQL Server + SSMS for my univ class and ever since then my disk space is going missing (every so often, approx. 3 gb of space goes missing). I strongly suspect SQL Server and/or SSMS to be at fault (since it only happened after I installed them), however I have no idea how to track down that missing space. Is it doing massive amounts of logging? Backups? No idea.

Where might I find that disk space and/or check if it is SQL Server's and/or SSMS' shenanigans?

Thank you for your time.

Note: I am using SSMS 18.9.1 and SQL Server 2019 Developer Edition. I might be able to update but any problems that arise will be my fault for deviating from the officially provided versions.

Solution

You might want to use WinDirStat or TreeSize Free to see which files are actually taking up space. It may not even be what you think.

SQL Server doesn't take backups on its own, so it's unlikely those are the culprit unless you set them up via a maintenance plan or other script.

More likely is that:

  • Your database is in full recovery and you're not taking log backups, in which case you can switch it to simple recovery model so that SQL Server manages the transaction log a bit for you



  • Your data/log files are set to grow by a percent, in which case you can set them to grow by smaller more predictable increments so they don't grow by exponentially larger percentage-based increments



If the goal is to reclaim disk space, feel free to search for any number of scripts or GUI walkthroughs out there to accomplish that task.

Context

StackExchange Database Administrators Q#310958, answer score: 11

Revisions (0)

No revisions yet.