-
Notifications
You must be signed in to change notification settings - Fork 0
9.4 Scripts
Wanderson Silva edited this page Apr 3, 2025
·
7 revisions
Scripts
- Tabelas mais acessadas
SELECT DB_NAME(A.DATABASE_ID) AS DB, B.NAME AS TB,
SUM(A.USER_SEEKS +
A.USER_SCANS +
A.USER_LOOKUPS) AS TOTAL_ACESSOS
FROM SYS.DM_DB_INDEX_USAGE_STATS A
INNER JOIN SYS.TABLES B
ON B.OBJECT_ID = A.OBJECT_ID
WHERE DATABASE_ID = DB_ID('NOME_BANCO')
GROUP BY DATABASE_ID, B.NAME
ORDER BY SUM(A.USER_SEEKS + A.USER_SCANS + A.USER_LOOKUPS) DESC
SQL Server DBA Scripts All in One – Useful Database Administration Scripts
Criando 15 Alertas no SQL Server em apenas 5 minutos
Passo a passo de como criar 40 Alertas para monitorar seu SQL Server