<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Simple query to check the recent performance history</title><link>http://blogs.msdn.com/microsoft_dynamics_nav_sustained_engineering/archive/2008/01/04/simple-query-to-check-the-recent-performance-history.aspx</link><description>The query described in this blog is a variant of a query described in KB 935395 on Partnersource (login required). While this KB article described issues specific to SQL Servers plan-cache, the query has proved to be very useful in general performance</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Geek Lectures - Things geeks should know about &amp;raquo; Blog Archive   &amp;raquo;  Simple query to check the recent performance history</title><link>http://blogs.msdn.com/microsoft_dynamics_nav_sustained_engineering/archive/2008/01/04/simple-query-to-check-the-recent-performance-history.aspx#6979823</link><pubDate>Fri, 04 Jan 2008 17:28:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6979823</guid><dc:creator>Geek Lectures - Things geeks should know about » Blog Archive   »  Simple query to check the recent performance history</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://geeklectures.info/2008/01/04/simple-query-to-check-the-recent-performance-history/"&gt;http://geeklectures.info/2008/01/04/simple-query-to-check-the-recent-performance-history/&lt;/a&gt;&lt;/p&gt;</description></item><item><title>re: Simple query to check the recent performance history</title><link>http://blogs.msdn.com/microsoft_dynamics_nav_sustained_engineering/archive/2008/01/04/simple-query-to-check-the-recent-performance-history.aspx#7928610</link><pubDate>Thu, 28 Feb 2008 07:04:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7928610</guid><dc:creator>GaspodeTheWonderDog</dc:creator><description>&lt;p&gt;When I execute the query against my SQL 2005 database I get an error:&lt;/p&gt;
&lt;p&gt;Msg 102, Level 15, State 1, Line 25&lt;/p&gt;
&lt;p&gt;Incorrect syntax near '.'.&lt;/p&gt;
&lt;p&gt;I just copied and pasted it from above. I realise it probably works for you but have you any idea why it doesn't work for me?&lt;/p&gt;</description></item><item><title>re: Simple query to check the recent performance history</title><link>http://blogs.msdn.com/microsoft_dynamics_nav_sustained_engineering/archive/2008/01/04/simple-query-to-check-the-recent-performance-history.aspx#7931356</link><pubDate>Thu, 28 Feb 2008 11:17:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7931356</guid><dc:creator>Lohndorf</dc:creator><description>&lt;p&gt;Hi GaspodeTheWonderDog,&lt;/p&gt;
&lt;p&gt;Can it be that the compatibility level for either the Nav database, or for Master, is set to SQL2000?&lt;/p&gt;
&lt;p&gt;Im not sure how to check this, but you can use sp_dbcmptlevel to change it.&lt;/p&gt;
&lt;p&gt;Will be interesting if you can come back, and let us know if this is the problem.&lt;/p&gt;</description></item><item><title>re: Simple query to check the recent performance history</title><link>http://blogs.msdn.com/microsoft_dynamics_nav_sustained_engineering/archive/2008/01/04/simple-query-to-check-the-recent-performance-history.aspx#7937097</link><pubDate>Thu, 28 Feb 2008 22:42:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7937097</guid><dc:creator>GaspodeTheWonderDog</dc:creator><description>&lt;p&gt;I read your comment and knew you were right even before I opened the database to look! I have tested it now and yes this is the cause.&lt;/p&gt;
&lt;p&gt;I upgraded the database from an old SQL2000 database using a database restore and didn't change the compatability level.&lt;/p&gt;
&lt;p&gt;Thanks for your help. This has to be the best blog on NAV there is.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Dave.&lt;/p&gt;</description></item><item><title>SQLIndex property</title><link>http://blogs.msdn.com/microsoft_dynamics_nav_sustained_engineering/archive/2008/01/04/simple-query-to-check-the-recent-performance-history.aspx#8416297</link><pubDate>Tue, 22 Apr 2008 12:26:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8416297</guid><dc:creator>Microsoft Dynamics NAV Sustained Engineering Team Blog</dc:creator><description>&lt;p&gt;In some situations, using the SQLIndex property on a key in Microsoft Dynamics NAV can harm performance.&lt;/p&gt;
</description></item><item><title>SQLIndex property</title><link>http://blogs.msdn.com/microsoft_dynamics_nav_sustained_engineering/archive/2008/01/04/simple-query-to-check-the-recent-performance-history.aspx#8416728</link><pubDate>Tue, 22 Apr 2008 18:51:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8416728</guid><dc:creator>Microsoft Dynamics NAV Sustained Engineering Team Blog</dc:creator><description>&lt;p&gt;In some situations, using the SQLIndex property on a key in Microsoft Dynamics NAV can harm performance&lt;/p&gt;
</description></item><item><title>Modern NAV/SQL troubleshooting</title><link>http://blogs.msdn.com/microsoft_dynamics_nav_sustained_engineering/archive/2008/01/04/simple-query-to-check-the-recent-performance-history.aspx#8499551</link><pubDate>Tue, 13 May 2008 11:57:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8499551</guid><dc:creator>Microsoft Dynamics NAV Sustained Engineering Team Blog</dc:creator><description>&lt;p&gt;This post is the first in a planned series to describe various &amp;quot;modern&amp;quot; methods for troubleshooting performance&lt;/p&gt;
</description></item><item><title>Modern NAV/SQL troubleshooting</title><link>http://blogs.msdn.com/microsoft_dynamics_nav_sustained_engineering/archive/2008/01/04/simple-query-to-check-the-recent-performance-history.aspx#8500892</link><pubDate>Tue, 13 May 2008 20:27:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8500892</guid><dc:creator>Microsoft Dynamics NAV Sustained Engineering Team Blog</dc:creator><description>&lt;p&gt;This post is the first in a planned series to describe various &amp;amp;quot;modern&amp;amp;quot; methods for troubleshooting&lt;/p&gt;
</description></item><item><title>Simple query to check the recent performance history II - now including Query Plan information</title><link>http://blogs.msdn.com/microsoft_dynamics_nav_sustained_engineering/archive/2008/01/04/simple-query-to-check-the-recent-performance-history.aspx#8999292</link><pubDate>Tue, 14 Oct 2008 13:25:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8999292</guid><dc:creator>Microsoft Dynamics NAV Sustained Engineering Team Blog</dc:creator><description>&lt;p&gt;One of the queries I use the most, is the pplan-cache query from this post: Simple query to check the&lt;/p&gt;
</description></item><item><title>Simple query to check the recent performance history II - now including Query Plan information</title><link>http://blogs.msdn.com/microsoft_dynamics_nav_sustained_engineering/archive/2008/01/04/simple-query-to-check-the-recent-performance-history.aspx#9001185</link><pubDate>Thu, 16 Oct 2008 02:10:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9001185</guid><dc:creator>Microsoft Dynamics NAV Sustained Engineering Team Blog</dc:creator><description>&lt;p&gt;One of the queries I use the most, is the pplan-cache query from this post: Simple query to check the&lt;/p&gt;
</description></item><item><title>Simple query to check the recent performance history II - now including Query Plan information</title><link>http://blogs.msdn.com/microsoft_dynamics_nav_sustained_engineering/archive/2008/01/04/simple-query-to-check-the-recent-performance-history.aspx#9020308</link><pubDate>Tue, 28 Oct 2008 17:53:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9020308</guid><dc:creator>Microsoft Dynamics NAV Sustained Engineering Team  </dc:creator><description>&lt;p&gt;One of the queries I use the most, is the pplan-cache query from this post: Simple query to check the&lt;/p&gt;
</description></item><item><title>re: Simple query to check the recent performance history</title><link>http://blogs.msdn.com/microsoft_dynamics_nav_sustained_engineering/archive/2008/01/04/simple-query-to-check-the-recent-performance-history.aspx#9526010</link><pubDate>Wed, 01 Apr 2009 12:45:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9526010</guid><dc:creator>pdj</dc:creator><description>&lt;p&gt;Hi Lars,&lt;/p&gt;
&lt;p&gt;I really like this query, but I have problems re-creating the troublesome statements in a Query window due to the prepare/execute method introduced in NAV5SP1. Could you please explain how to execute the SQL statements the-NAV-way? Either here, or in this thread: &lt;a rel="nofollow" target="_new" href="http://mibuso.com/forum/viewtopic.php?f=34&amp;amp;t=33102"&gt;http://mibuso.com/forum/viewtopic.php?f=34&amp;amp;t=33102&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Peter&lt;/p&gt;
</description></item></channel></rss>