For SQL Server deep DMV coverage
From Always On Availability Group to Query Store, Hekaton to CDC, TDE certificate expiry to kill SPID actions — a comprehensive DMV and catalog view scan suite curated by a Microsoft Data Platform MVP.
From Always On Availability Group to Query Store, Hekaton to CDC, TDE certificate expiry to kill SPID actions — a comprehensive DMV and catalog view scan suite curated by a Microsoft Data Platform MVP.
Query text, plan history and runtime stats are read from Query Store. Automatic plan regression detection, forced plans management.
get_query_store_healthget_query_store_regressionsget_query_store_forced_plansforce_query_plan / unforce_query_planPlan cache top consumers, last actual stats per plan handle, parameter values, memory grants.
get_plan_cache_analysisget_query_plan_stats_last(plan_handle)get_query_memory_grantsget_execution_plan (XML parse)Missing index group analysis, impact score, duplicate index detection, fragmentation, online rebuild and fill factor analysis.
get_missing_index_recommendationsget_missing_index_groupsget_duplicate_indexesget_index_maintenance_advisorWait categorization, session-level wait, query-level wait, and 1-168 hour trend window (sparkline + min/max/avg).
get_wait_stats + detailget_session_wait_statsget_query_wait_statsMemory-optimized tables, garbage collection, checkpoint files, columnstore segment fragmentation, dictionary stats, deltastore.
get_hekaton_stats (SQL 2014+)get_columnstore_healthActive sessions, live query monitor, session input buffer (last SQL executed by the SPID), parallel query analysis.
get_active_sessionsget_live_query_monitorget_session_input_buffer(spid)get_parallel_query_analysis (CXPACKET)AG status, replica role, sync mode, failover ready, log send queue, redo queue, lag KB and time, secondary readable status.
get_alwayson_ag_detailAG endpoint state, listener TCP port reachability, encryption + authentication settings, read-only routing list.
get_ag_endpoint_healthWindows Server Failover Cluster nodes, status, quorum type, vote count, witness health, dynamic quorum decisions.
get_wsfc_statusget_cluster_quorum_statusLog shipping primary / secondary status, backup chain validation, critical lag alarm (> 1 hour), recovery model changes.
get_log_shipping_statusget_backup_chain_validation(7d)get_backup_historyPublication, subscription, distribution agent backlog, latency, failed commands, agent history.
get_replication_statusDatabase snapshot list, source DB, sparse file size, creation date, stale snapshot warning.
get_db_snapshots_inventoryTransparent Data Encryption-enabled databases, certificate expiration dates and early warning (30 days prior). Lost certificate = lost data access.
get_tde_statusget_tde_certificate_expiryAlways Encrypted column list, Dynamic Data Masking-enabled columns, Row Level Security policies, SQL 2022+ Ledger blockchain verification.
Audit specifications, target file/log, action groups, check whether SQL Audit is enabled, and audit log review.
get_audit_statusget_audit_logs(limit)SQL logins and Windows logins, password policy, expiry, default DB. Login lockout policy and account status.
get_logins_securityget_failed_logins(24h)User / role / login relationship matrix, sysadmin count, public role permissions, orphan users (users without a login) detection.
get_permission_matrix (TTL 300s)get_orphan_usersActive XE sessions, ring buffer event rate, XE overhead alarm, crypto provider list (key management).
get_xe_sessionsget_extended_events_ring_statsAll operational actions run with a confirmation dialog, are written to the audit log and pass through role-based permission checks. No need to open SSMS.
Terminate problematic session. Protected from system SPID (≤ 50).
POST /kill-spid
Table or statistic-level FULLSCAN.
POST /update-statistics
DBCC SHRINKFILE NO_INFOMSGS.
POST /shrink-log
Query Store plan force / unforce.
force_plan / unforce_plan
PHYSICAL_ONLY or full integrity check.
run_dbcc_checkdb
Online rebuild (ENT) + WAIT_AT_LOW_PRIORITY.
rebuild_index_online
Cached plan invalidation via sp_recompile.
recompile_procedure
Resource pool / workload group runtime tuning.
update_resource_pool
# Sorunlu SPID'i sonlandır — system SPID koruması otomatik POST /api/v2/instance/{source_id}/kill-spid Body: { "spid": 147, "reason": "long-running blocker" } # Yanıt: { "status": "killed", "spid": 147, "audit_id": "a8f3...", "protected": false # sistem SPID değil }
SQL Server process memory, OS commit, memory clerks (CACHESTORE, USERSTORE, MEMORYCLERK_*) consumption, buffer pool stats.
get_memory_clerksget_process_memoryget_os_memoryget_buffer_pool_statsWorker thread status, runnable queue, scheduler health, NUMA topology distribution, max worker threads config.
get_workers_summaryget_scheduler_healthget_numa_topologyget_resource_governorTempDB file distribution, allocation contention, version store usage, alarm via tempdb watchdog.
get_tempdb_detailsget_tempdb_version_storeDLLs loaded in the SQL Server process, third-party modules, agent jobs and job step failures.
get_loaded_modulesget_agent_jobsget_agent_job_step_failuresget_database_mail_statusThe table below summarizes the monitoring and action capabilities implemented in the SQL Server provider of SentinelDB360.
| Capability | Description | DMV / Command |
|---|---|---|
| Performance & Query | ||
| Top queries | CPU/IO/duration-based ranking | sys.dm_exec_query_stats |
| Query Store | Plan history + regressions | sys.query_store_* |
| Plan cache | Top consumers + plan handle deep dive | dm_exec_cached_plans |
| Missing index | Suggested index + impact | dm_db_missing_index_* |
| Index physical stats | Fragmentation, page count | dm_db_index_physical_stats |
| Memory grants | Active query memory | dm_exec_query_memory_grants |
| High Availability | ||
| Always On AG | Replica state, sync mode, lag | dm_hadr_database_replica_states |
| AG endpoint | Endpoint state + listener | sys.tcp_endpoints |
| WSFC quorum | Cluster nodes + quorum | dm_hadr_cluster* |
| Log shipping | Primary/secondary lag | msdb.dbo.log_shipping* |
| Backup chain | 7-day chain validation | msdb.dbo.backupset |
| Replication | Distribution backlog | distribution.dbo.MSrepl_* |
| Security & Compliance | ||
| TDE status | Encryption state per DB | dm_database_encryption_keys |
| TDE certificate expiry | 30/60/90 day warning | sys.certificates |
| Always Encrypted | AE column list | sys.column_encryption_keys |
| Row Level Security | Active policies | sys.security_policies |
| Ledger (SQL 2022+) | Blockchain verification | sys.database_ledger_* |
| SQL Server Audit | Audit specifications | sys.server_audits |
| Failed logins (24h) | Spike detection | xp_readerrorlog |
| Permission matrix | User / role / login (TTL 300s) | sys.database_permissions |
| Storage & I/O | ||
| File I/O latency | Read/write ms per file | dm_io_virtual_file_stats |
| I/O delta engine | 10s sample interval | get_io_virtual_file_stats_delta |
| Disk volumes | Drive utilization | dm_os_volume_stats |
| DB growth history | Autogrow events | default_trace |
| VLF count | Log file VLF analysis | DBCC LOGINFO |
| Log space usage | Per-DB log used % | dm_db_log_space_usage |
| Memory, CPU & Workers | ||
| Memory clerks | CACHESTORE, USERSTORE, MEMORYCLERK | dm_os_memory_clerks |
| OS memory | Process commit + system commit | dm_os_sys_memory |
| Worker threads | Active / runnable / idle | dm_os_workers |
| Schedulers | Health + work_queue_count | dm_os_schedulers |
| NUMA topology | Memory node + CPU node | dm_os_nodes |
| Resource Governor | Pool / workload group | dm_resource_governor_* |
| Operational Actions | ||
| Kill SPID | System SPID protection (≤50) | KILL @spid |
| Update statistics | FULLSCAN table / statistic | UPDATE STATISTICS ... WITH FULLSCAN |
| Shrink log | NO_INFOMSGS | DBCC SHRINKFILE |
| Force / unforce plan | Query Store plan control | sp_query_store_force_plan |
| Recompile | Cached plan invalidation | sp_recompile |
| DBCC CHECKDB | PHYSICAL_ONLY or full | DBCC CHECKDB |
| Rebuild index online | WAIT_AT_LOW_PRIORITY | ALTER INDEX REBUILD |
| Resource pool update | MAX_CPU_PERCENT runtime | ALTER RESOURCE POOL |
| Cloud & Specialized | ||
| Azure SQL DB | DTU/vCore stats | dm_db_resource_stats |
| Elastic pool | Pool resource stats | dm_elastic_pool_resource_stats |
| Hekaton | Memory-optimized stats | dm_db_xtp_* |
| Columnstore | Segment fragmentation | dm_db_column_store_* |
| CDC | Change Data Capture health | cdc.change_tables |
| Service Broker | Poison message detection | sys.transmission_queue |
| Linked servers | Connection + provider | sys.servers |
From SQL 2008R2 to SQL 2022 and Azure SQL — agentless setup, MVP-curated.