﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Administering / SQL Server 2005  / Most CPU intensive queries / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sun, 19 May 2013 11:24:12 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Most CPU intensive queries</title><link>http://www.sqlservercentral.com/Forums/Topic1012252-146-1.aspx</link><description>Thanks a lot Gail. Got my answers :)</description><pubDate>Fri, 29 Oct 2010 06:50:13 GMT</pubDate><dc:creator>ps.</dc:creator></item><item><title>RE: Most CPU intensive queries</title><link>http://www.sqlservercentral.com/Forums/Topic1012252-146-1.aspx</link><description>It's not creating the proc, it's running it.When you query sys.dm_exec_sql_text and the handle you pass is for a running stored proc, you get back the creation script for the proc. It does not mean that the proc is being created, it means that the proc is running.</description><pubDate>Fri, 29 Oct 2010 06:37:46 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: Most CPU intensive queries</title><link>http://www.sqlservercentral.com/Forums/Topic1012252-146-1.aspx</link><description>the DBID is 32767 which is resource db i think. is the SP created in memory as resource db is read only? i dont know if that happens.</description><pubDate>Fri, 29 Oct 2010 06:34:46 GMT</pubDate><dc:creator>ps.</dc:creator></item><item><title>RE: Most CPU intensive queries</title><link>http://www.sqlservercentral.com/Forums/Topic1012252-146-1.aspx</link><description>Hi Gail, I ran this query.[code]select      highest_cpu_queries.plan_handle,      highest_cpu_queries.total_worker_time,     q.dbid,     q.objectid,     q.number,     q.encrypted,     q.[text] from      (select top 50          qs.plan_handle,          qs.total_worker_time     from          sys.dm_exec_query_stats qs     order by qs.total_worker_time desc) as highest_cpu_queries     cross apply sys.dm_exec_sql_text(plan_handle) as q order by highest_cpu_queries.total_worker_time desc[/code]as of now, it is occupying top slot instead of 7th position.</description><pubDate>Fri, 29 Oct 2010 06:24:38 GMT</pubDate><dc:creator>ps.</dc:creator></item><item><title>RE: Most CPU intensive queries</title><link>http://www.sqlservercentral.com/Forums/Topic1012252-146-1.aspx</link><description>[quote][b]ps. (10/28/2010)[/b][hr]Line number 7 is most amusing to me as it shows that particular SP has been created 17163 times in the last 12 hours or so (server was rebooted 12 hours prior when this report was pulled).[/quote]How did you get that list?</description><pubDate>Fri, 29 Oct 2010 05:18:34 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: Most CPU intensive queries</title><link>http://www.sqlservercentral.com/Forums/Topic1012252-146-1.aspx</link><description>I checked the code behind [b]sp_dbmmonitorupdate[/b] system stored procedure which is called every minute by the mirror monitoring job. The SP has the following code within it:[code]exec @retcode = sys.sp_dbmmonitorMSgetthelatestlsn @database_name, @end_of_log_lsn output[/code]I can see sp_dbmmonitorupdate is calling this SP. however i cannot see dbmmonitorMSgetthelatestlsn SP in any of the databases including master/msdb/mirrored databases. Top 10 CPU intensive queries says this SP is created too frequently. How do i find which process is creating this SP?sp_dbmmonitorupdate does not have the code to create the other sp. it's just invoking it(and i cannot find that SP).Anyone has any ideas about it?</description><pubDate>Fri, 29 Oct 2010 04:25:12 GMT</pubDate><dc:creator>ps.</dc:creator></item><item><title>Most CPU intensive queries</title><link>http://www.sqlservercentral.com/Forums/Topic1012252-146-1.aspx</link><description>Here is an attachment that lists top 9 queries consuming most CPU time. Line number 7 is most amusing to me as it shows that particular SP has been created 17163 times in the last 12 hours or so (server was rebooted 12 hours prior when this report was pulled).Mirroring is setup on this server. I am not sure which process is creating this SP for so many times. Any thoughts?</description><pubDate>Thu, 28 Oct 2010 06:31:01 GMT</pubDate><dc:creator>ps.</dc:creator></item></channel></rss>