December 19, 2013 at 12:55 pm
I have 23 databases in my server and I use a script to monitor the health of them. This script use the dm_os_performance_counters, but for two databases I get an error, because the associated rows, don't exist in this DM. It's important to know that the counter is there, so the unload / load process don't fit in this scenario.
I really don't know what to do. Any help ?
December 19, 2013 at 1:00 pm
Which rows are missing?
"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
December 19, 2013 at 1:10 pm
Grant Fritchey (12/19/2013)
Which rows are missing?
I use this query to return the values, but two databases has no rows. The other databases has rows:
SELECT cntr_value
FROM sys.dm_os_performance_counters
WHERE counter_name = 'Transactions/sec'
AND object_name = 'SQLServer:Databases'
AND instance_name = '[database_name]'
December 19, 2013 at 5:16 pm
That is odd. Any chance those databases are set to auto_close? If so, they won't have performance counter metrics.
"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
December 20, 2013 at 8:15 am
Really odd. Both databases has auto_close set to OFF.
December 20, 2013 at 8:39 am
Then I'm not sure. You may need to contact Microsoft.
"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
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply