powershelldba.de · Uwe Janke
← Command Reference  /  Live examples Live examples

Every sqmSQLTool HTML report, in one place.

49 report examples across 12 categories. Generated against a lab SQL Server instance seeded with the AdventureWorks sample database, read-only, no production or customer data.

Real report, actual output from a live run on the lab instance Illustrative example, this lab has no AlwaysOn AG / AD domain / second instance to run the command against, so values are representative

Diagnostics & Health

Get-sqmDatabaseHealth Database Health Report Backup status, VLF count, CHECKDB age and autogrowth events across every database on an instance. View report → Get-sqmAgentJobScheduleReport Agent Job Schedule Report Every SQL Agent job with its schedule, last run status, and average duration. View report → Get-sqmConnectionStats Connection Statistics Active connections grouped by application, host and login. View report → Get-sqmDiskSpaceReport Disk Space Report Free space per volume with a time-to-exhaustion estimate from collected history. View report → Invoke-sqmSetupReport SQL Server Setup Report Critical issues, security posture, and database overview for a freshly checked instance. View report → Get-sqmTempDbRecommendation TempDB Recommendation TempDB file count and configuration checked against best practices. View report → Get-sqmSpnReportIllustrative SPN Report Registered vs. expected Kerberos SPNs for a SQL Server instance, with ready-to-run setspn commands. View report → New-sqmSetupReportIllustrative Setup Event Replay Self-contained animated HTML replay built from a setup event JSON-Lines timeline. View report → Get-sqmDatabaseSpaceReportIllustrative Database Space Report Data and log file fill-level per database, flagged against warning/critical percent-used thresholds. View report → Get-sqmFileGrowthHistoryIllustrative File Growth Report Forecasted days-until-full per database file from a linear regression over recorded size history. View report → Get-sqmAutoGrowthReportIllustrative AutoGrowth Report Percent-based growth, too-small/too-large MB growth, and unbounded log files flagged against best practice. View report →

Performance

Get-sqmBlockingReport Blocking Report Live blocking chains with head blocker, wait time, and the exact statements involved. View report → Get-sqmMissingIndexes Missing Indexes Report Impact-scored index recommendations from the DMV cache, ranked by seeks/scans and cost. View report → Get-sqmIndexFragmentation Index Fragmentation Report Fragmentation percent and page count per index, with a REBUILD/REORGANIZE recommendation. View report → Get-sqmLongRunningQueries Long-Running Queries Currently executing queries beyond a duration threshold, with wait type and CPU time. View report → Get-sqmPerfCounters Performance Counters Top SQL Server performance counters from sys.dm_os_performance_counters. View report → Get-sqmServerUtilization Server Utilization Trend CPU and memory utilization sampled over time, with min/max/average per metric. View report → Get-sqmWaitStatistics Wait Statistics Report Top wait types from sys.dm_os_wait_stats, ranked by accumulated wait time. View report → Invoke-sqmQueryStore Query Store Diagnosis Top-N queries and detected Query Store issues for a database. View report → Invoke-sqmPerfBaseline Performance Baseline Comparison Wait stat and perf counter deltas between two captured baselines. View report → Get-sqmDeadlockReportIllustrative Deadlock Report Deadlock victims, involved statements, and a link to the XDL graph for each event. View report → Invoke-sqmExtendedEventsIllustrative Extended Events Diagnosis Aggregated session events with detected performance issues by category and severity. View report → Get-sqmBlockingHistoryIllustrative Blocking History Past blocking incidents captured from Extended Events, with head blocker, wait time, and both statements. View report →