September 19, 2018 at 2:26 am
Dear Experts
I noticed a strange thing on some of our databases. When I wanted to get the values for Buffer Cache Hit Ratio and Page Life Expectancy , it returns nothing for these databases . Has it got to do with the size of these databases . They are just few GB's in size.
Best Regards
Arshad
September 19, 2018 at 4:37 am
How are you measuring the Buffer Cache Hit Ratio on a per database basis? It's a server level metric. It's also pretty useless as a metric. Same thing goes for the Page Life Expectancy. These are not database only values. They're server level values, so how are you measuring them per database?
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
September 19, 2018 at 5:19 am
Grant Fritchey - Wednesday, September 19, 2018 4:37 AMHow are you measuring the Buffer Cache Hit Ratio on a per database basis? It's a server level metric. It's also pretty useless as a metric. Same thing goes for the Page Life Expectancy. These are not database only values. They're server level values, so how are you measuring them per database?
Thanks Grant for pointing out that they are server level values. My concern still why they are blank ?
Regards..Arshad
September 19, 2018 at 5:51 am
Again, how are you recording them?
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
September 19, 2018 at 11:50 pm
Grant Fritchey - Wednesday, September 19, 2018 5:51 AMAgain, how are you recording them?
--- Buffer Cache Hit Ratio
Rdgs….Arshad
September 20, 2018 at 5:07 am
Those should return data. If they're not, it's likely that something is up with sys.dm_os_performance_counters, not your databases or servers. Check all the possibilities Pinal Dave lists.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
September 20, 2018 at 7:20 am
Grant Fritchey - Thursday, September 20, 2018 5:07 AMThose should return data. If they're not, it's likely that something is up with sys.dm_os_performance_counters, not your databases or servers. Check all the possibilities Pinal Dave lists.
Yep it looks like access issue . User sa is able to get the info . The user I m trying has read-only access that has been granted the 'VIEW SERVER STATE' . Thank you.
Regards...Arshad
September 20, 2018 at 7:43 am
Arsh - Thursday, September 20, 2018 7:20 AMGrant Fritchey - Thursday, September 20, 2018 5:07 AMThose should return data. If they're not, it's likely that something is up with sys.dm_os_performance_counters, not your databases or servers. Check all the possibilities Pinal Dave lists.Yep it looks like access issue . User sa is able to get the info . The user I m trying has read-only access that has been granted the 'VIEW SERVER STATE' . Thank you.
Regards...Arshad
Build a stored procedure with EXECUTE AS OWNER and give the user privs to execute only the stored procedure.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply