/* Wyświetla wszystkie Page Latch w bazie danych */ select q.text, r.status, r.wait_type, r.wait_resource, r.wait_time from sys.dm_exec_requests r inner join sys.dm_exec_sessions s on s.session_id=r.session_id cross apply sys.dm_exec_sql_text(r.sql_handle) q where s.is_user_process=1 and r.status<>'running' and r.wait_type like 'PAGELATCH%' order by r.wait_resource -- sprawdzenie potem co jest w ym bloku dbcc page(40, 43, 14988552, 3) with tableresults -- jeśli to jest index to sprawdzamy który to jest select * from sys.indexes where object_id=399340487