Fix case sensitivity issue in sqlserver query (#3336)

(cherry picked from commit 1f348037b7)
This commit is contained in:
Daniel Nelson 2017-10-16 11:26:16 -07:00 committed by Daniel Nelson
parent e32ffdde06
commit e4835cdc30
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
1 changed files with 2 additions and 2 deletions

View File

@ -245,10 +245,10 @@ UNION ALL
SELECT 'Average pending disk IO', AveragePendingDiskIOCount = (SELECT AVG(pending_disk_io_count) FROM sys.dm_os_schedulers WITH (NOLOCK) WHERE scheduler_id < 255 ) SELECT 'Average pending disk IO', AveragePendingDiskIOCount = (SELECT AVG(pending_disk_io_count) FROM sys.dm_os_schedulers WITH (NOLOCK) WHERE scheduler_id < 255 )
UNION ALL UNION ALL
SELECT 'Buffer pool rate (bytes/sec)', BufferPoolRate = (1.0*cntr_value * 8 * 1024) / SELECT 'Buffer pool rate (bytes/sec)', BufferPoolRate = (1.0*cntr_value * 8 * 1024) /
(SELECT 1.0*cntr_value FROM sys.dm_os_performance_counters WHERE object_name like '%Buffer Manager%' AND lower(counter_name) = 'Page life expectancy') (SELECT 1.0*cntr_value FROM sys.dm_os_performance_counters WHERE object_name like '%Buffer Manager%' AND counter_name = 'Page life expectancy')
FROM sys.dm_os_performance_counters FROM sys.dm_os_performance_counters
WHERE object_name like '%Buffer Manager%' WHERE object_name like '%Buffer Manager%'
AND counter_name = 'database pages' AND counter_name = 'Database pages'
UNION ALL UNION ALL
SELECT 'Memory grant pending', MemoryGrantPending = cntr_value SELECT 'Memory grant pending', MemoryGrantPending = cntr_value
FROM sys.dm_os_performance_counters FROM sys.dm_os_performance_counters