Category: Monitoring

  • Get SQL Server CPU Topology and Core Counts

    This script provides a quick view of how SQL Server interprets the CPU layout of a server or VM. It returns CPU counts, socket and core layout, NUMA node configuration, scheduler visibility, and key configuration values such as MAXDOP and cost threshold for parallelism. I typically use this when validating a new SQL Server build,…

  • Get Database Sizes and Free Space in SQL Server

    Keeping track of database file sizes and available free space is a basic but essential part of SQL Server administration. If you don’t know how large your data and log files are, or how much free space they contain, capacity planning becomes guesswork. Problems tend to surface late, usually during growth events, backups, or unexpected…

  • Get Database File Names and Paths in SQL Server

    As a DBA, you regularly need to know where your database files live, how big they are, and how they’re configured to grow. Capacity planning, migration prep, new environment review, disk space incidents: they all start here. This script gives you a full picture of every user database file on the instance: physical path, drive…