top of page
Search
Kunal Ranpura
Jul 30, 20191 min read
Find space used in SQL Server Buffer cache by ad-hoc queries
-- Find single-use, ad-hoc queries that are bloating the plan cache SELECT TOP(20) [text] AS [QueryText], cp.size_in_bytes/1024 Size_MB...
70 views0 comments
Kunal Ranpura
Jul 30, 20191 min read
Find SQL Server Memory Clerk Usage
-- Memory Clerk Usage for instance -- Look for high value for CACHESTORE_SQLCP (Ad-hoc query plans) SELECT TOP(10) [type] AS [Memory...
43 views0 comments
Kunal Ranpura
Jul 30, 20191 min read
SQL Server Memory Grants Pending value
-- Memory Grants Pending value for default instance SELECT cntr_value AS [Memory Grants Pending] FROM sys.dm_os_performance_counters WITH...
27 views0 comments
Kunal Ranpura
Jul 30, 20191 min read
Find SQL Server Memory Grant OutStanding
-- Memory Grants Outstanding value for default instance SELECT cntr_value AS [Memory Grants Outstanding] FROM sys.dm_os_performance_count...
86 views0 comments
Kunal Ranpura
Jul 30, 20191 min read
Find SQL Server Page Life Expectancy
-- Page Life Expectancy (PLE) value for default instance SELECT cntr_value AS [Page Life Expectancy] FROM sys.dm_os_performance_counters...
21 views0 comments
Kunal Ranpura
Jul 30, 20191 min read
Check if your SQL Server is under Memory Pressure
-- SQL Server Process Address space info --(shows whether locked pages is enabled, among other things) SELECT physical_memory_in_use_kb/1...
23 views0 comments
Kunal Ranpura
Jul 30, 20191 min read
Find SQL Server Memory total and Available including Page File Size
-- Good basic information about memory amounts and state SELECT total_physical_memory_kb/1024000 Total_Physical_MM_GB,...
22 views0 comments
bottom of page