Tag: SQL Server Storage

SQL Server Storage and Capacity Planning Blog Archives: A collection of tips and SQL scripts to track database sizes and monitor disk utilization.


  • Get Database Sizes in SQL Server

    Knowing how much disk space your databases are consuming in SQL Server is an important thing to know and monitor as a Database Administrator. As well as this, we should be looking at future growth of database files, ensuring we have enough disk space for years to come.…

    Read More


  • How to Check Table Sizes in SQL Server

    In this post, I’m sharing different ways of checking table sizes in SQL Server. There’s many ways to get this information, and whether you prefer using T-SQL scripts for automation, or SSMS tools for quick checks, these methods offer flexibility for different situations as a SQL Database Administrator.…

    Read More


  • Get Database Sizes & Free Space Info In SQL Server

    Monitoring database file sizes and free space within data and log files is an important part of monitoring SQL Server health. This information, along with other metrics such as growth events, can help you to better predict and plan for future disk space provisioning needs. The following script…

    Read More


  • Disk Usage by Top Tables Report in SQL Server

    The Disk Usage by Top Tables Report in SQL Server is a quick way to get the sizes of all tables within a database. It’ll show all tables largest to smallest tables by total size on disk. If you notice that a database is growing larger in size,…

    Read More


  • How to Set Database Growth Sizes in SQL Server

    In SQL Server, database growth events occur when a database file reaches its maximum allocated size, triggering an automatic expansion to accommodate additional data. These growth events are needed for maintaining sufficient space but can also lead to performance issues if not properly managed. Configuring a good database…

    Read More


  • Setting Maximum Database File Sizes in SQL Server

    This post shares how to set maximum database file sizes in SQL Server, capping your database file size limits for proper disk space management. Configuring maximum database file sizes in SQL Server is often considered a safeguard or tactical measure rather than a primary strategy. Ideally, you want…

    Read More


  • How to Move Temp DB Files in SQL Server

    It’s a solid best practice to store temp db files on a separate drive, away from your C: drive. This is because temp db can grow very large, very quickly, sometimes within minutes depending on workloads. This growth affects both the temp db data (.ndf) and log (.ldf)…

    Read More


  • How to Quickly Get Table Sizes in SQL Server

    Monitoring table sizes in SQL Server is crucial for effective database management. For a detailed guide covering various methods, including built-in reports and custom scripts, please refer to my latest article on this: How to Check Table Sizes in SQL Server. In this guide, we’ll show a few…

    Read More


  • SQL Server Script: Get Database Growth Events

    In SQL Server, database growth events occur when the database files automatically expand to accommodate more data. These events are essential to monitor because frequent auto-growth can impact performance, causing fragmentation and increased disk I/O during expansions. Proper configuration of file growth settings is crucial to maintaining optimal…

    Read More