Nice article.
Since profiler traces are deprecated, did you attempt to do this with an extended event?
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
Thanks for taking the time to share this.
I am having problems setting up the alert. I get this error:
The @wmi_query could not be executed in the @wmi_namespace provided. Verify that an event class selected in the query exists in the namespace and that the query has has the correct syntax. (Microsoft SQL Server, Error:22022)
I made sure the WMI namespace was \\.\root\cimv2 and used the query you provided.
The SQL Server Agent service account is a domain account. We are running SQL Server 2008 Standard, SP2 (10.0.4000)
Found nothing in the SQL log or Windows events logs.
Any ideas on what I did wrong? Thanks.
Lee
Thanks, this is a great article that's opened an area I've never really explored before. However, it's not really working the way I'd expected. I have a lightly used, dedicated server (nothing runs on it except SQL Server). The Windows CPU graph hardly ticks up (see below):-
Yet I'm getting alerts every 20 to 30 minutes. The spike on the left caused one of those alerts.
I don't understand it.
I thought the "WITHIN 120" required the 95% usage to be sustained for 2 minutes, yet the performance graph shows only a brief spike.
submitted before finished .. . see response in next post below
Lee,
Sorry I didn't see your question earlier; I didn't realize the article had been published yet.
Concerning the WMI error you reference, three immediate possibilities come to mind:
1.) Is SQL Server Service Broker enabled?
(http://www.sqlservercentral.com/articles/Administration/61823)
2.) Is this a cluster configuration relevant to MS Support Post:
(http://support.Microsoft.com/kb/960573)
3.) Does the domain account have rights to query WMI on this server?
(http://technet.Microsoft.com/en-us/library/cc787533(v=ws.10).aspx)
Thanks,
Clark
Clark,
Thanks for the response. I checked and broker was enabled, the domain account was able to query WMI and the instance is not a cluster. What I ended up doing was taking the query that I had cut and pasted from your excellent article and comlpetely re-enter it manually. Then it worked fine. Very strange. Thanks again for you article and yor response.
Lee
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply