top of page

Search
Kunal Ranpura
Aug 12, 20191 min read
SQL Server Index Read/Write stats (all tables in current DB) ordered by Writes
SELECT OBJECT_NAME(s.[object_id]) AS [ObjectName], i.name AS [IndexName], i.index_id, s.user_updates AS [Writes], user_seeks + user_scans...
15 views0 comments
Kunal Ranpura
Aug 12, 20191 min read
SQL Server Index Read/Write stats (all tables in current DB) ordered by Reads
SELECT OBJECT_NAME(s.[object_id]) AS [ObjectName], i.name AS [IndexName], i.index_id, user_seeks + user_scans + user_lookups AS [Reads],...
9 views0 comments
Kunal Ranpura
Aug 12, 20191 min read
SQL Server missing indexes from cached plans in the current database
-- Find missing index warnings for cached plans in the current database -- Note: This query could take some time on a busy instance...
9 views0 comments
Kunal Ranpura
Aug 12, 20191 min read
SQL Server Missing Indexes current database by Index Advantage
SELECT user_seeks * avg_total_user_cost * (avg_user_impact * 0.01) AS [index_advantage], migs.last_user_seek, mid.[statement] AS...
17 views0 comments
bottom of page