Tag: Monitoring

  • DBA Scripts: Get Database Summary

    🔧Part of the DBA-Tools Project, copy/paste SQL Server scripts and health checks.Related pillar: Server & Configuration One Row Per Database, Every Issue Flagged in One Column Checking every database on an instance one at a time, state here, recovery model there, backup age in a third window, doesn’t scale, and it’s exactly the kind of…

  • DBA Scripts: Run a Full SQL Server Health Check

    🔧Part of the DBA-Tools Project, copy/paste SQL Server scripts and health checks.Related pillar: Performance & Troubleshooting Most of the 130+ scripts on this site answer one specific question, run when you already know what you’re looking for. This post is different. It’s the workflow for the moment you don’t know what to look for yet,…

  • DBA Scripts: Get Job Schedules and Duration Trends

    🔧Part of the DBA-Tools Project, copy/paste SQL Server scripts and health checks. When Jobs Run, and Whether They’re Taking Longer to Do It SQL Agent Job Failure Summary tells you what broke. These two scripts answer two quieter but just as important questions: Get-JobScheduleSummary shows exactly when every enabled job is scheduled to run next,…

  • DBA Scripts: Get Trace Flags and Resource Governor Configuration

    🔧Part of the DBA-Tools Project, copy/paste SQL Server scripts and health checks. Two Things a Previous DBA Might Have Set and Never Told You Trace flags and Resource Governor are both instance-wide behavior changes that don’t show up in sp_configure at a glance, don’t appear in the database, and can sit silently in place for…

  • DBA Scripts: Get CPU Topology and OS Configuration Checks

    🔧Part of the DBA-Tools Project, copy/paste SQL Server scripts and health checks. What CPU and OS Settings Are Actually Doing to SQL Server OS and Hardware Info tells you what hardware exists. These two scripts go one level deeper: how SQL Server is actually scheduling work across that hardware, and whether a handful of OS-level…

  • DBA Scripts: Get Error Log Patterns

    🔧Part of the DBA-Tools Project, copy/paste SQL Server scripts and health checks. Group the Error Log Instead of Scrolling It The SQL Server error log is where the instance tells you what’s wrong, but on a busy server it’s also where hundreds of routine startup, backup, and checkpoint messages bury the handful of lines that…

  • DBA Scripts: Get Log Reuse Waits

    🔧Part of the DBA-Tools Project, copy/paste SQL Server scripts and health checks.Related pillar: Storage & Capacity The One Question That Actually Matters A transaction log that won’t stop growing, or a log backup job that suddenly can’t keep up, always comes back to the same underlying question: what is this database’s log actually waiting on…

  • DBA Scripts: Get TempDB Configuration

    🔧Part of the DBA-Tools Project, copy/paste SQL Server scripts and health checks. TempDB is shared by every database on the instance, and it’s usually the first thing to show contention under load, long before any user database does. Unlike a user database’s files, TempDB’s default configuration out of the box (a single data file) is…

  • DBA Scripts: Get Temp DB Hotspots

    🔧Part of the DBA-Tools Project, copy/paste SQL Server scripts and health checks. Temp DB is shared by every database and every session on the instance: temp tables, table variables, sort and hash spills, version store for snapshot isolation, all of it lands in the same handful of files. When Temp DB is under pressure, contention…

  • DBA Scripts: Get SQL Agent Job Failure Summary

    🔧Part of the DBA-Tools Project, copy/paste SQL Server scripts and health checks.Related pillar: Maintenance & Automation Get SQL Agent Job Overview answers “what’s the current state of every job.” This script answers a narrower, more urgent question: “what actually failed recently, and why.” Job history in msdb holds the error message for every failed step,…