<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>SQL Server Planet &#187; DMV Queries</title> <atom:link href="http://sqlserverplanet.com/category/dmv-queries/feed/" rel="self" type="application/rss+xml" /><link>http://sqlserverplanet.com</link> <description>Tips and Articles on SQL Server</description> <lastBuildDate>Wed, 07 Jul 2010 05:16:42 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0</generator> <item><title>Find Best Clustered Index</title><link>http://sqlserverplanet.com/dmv-queries/find-best-clustered-index/</link> <comments>http://sqlserverplanet.com/dmv-queries/find-best-clustered-index/#comments</comments> <pubDate>Mon, 16 Nov 2009 18:35:02 +0000</pubDate> <dc:creator>Derek Dieter</dc:creator> <category><![CDATA[DMV Queries]]></category><guid isPermaLink="false">http://sqlserverplanet.com/?p=959</guid> <description><![CDATA[The following query will compare the nonclustered indexes vs the clustered index and determine which index would qualify as the best clustered index based upon the DMV statistics. If a clustered index does not exist on the table, it will also suggest one of the existing nonclustered indexes as the clustered index. DECLARE @NonClusteredSeekPct float [...]]]></description> <wfw:commentRss>http://sqlserverplanet.com/dmv-queries/find-best-clustered-index/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Find All Queries Run Against a Table</title><link>http://sqlserverplanet.com/sql-server-2008/find-all-queries-run-against-a-table/</link> <comments>http://sqlserverplanet.com/sql-server-2008/find-all-queries-run-against-a-table/#comments</comments> <pubDate>Fri, 26 Jun 2009 20:23:50 +0000</pubDate> <dc:creator>Derek Dieter</dc:creator> <category><![CDATA[DMV Queries]]></category> <category><![CDATA[SQL Server 2008]]></category><guid isPermaLink="false">http://sqlserverplanet.com/?p=473</guid> <description><![CDATA[Dynamic management view to find all queries that have been run against a table since the last reboot.]]></description> <wfw:commentRss>http://sqlserverplanet.com/sql-server-2008/find-all-queries-run-against-a-table/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Find Number of Pages Each Database has in BufferPool</title><link>http://sqlserverplanet.com/dmv-queries/find-number-of-pages-each-database-has-in-bufferpool/</link> <comments>http://sqlserverplanet.com/dmv-queries/find-number-of-pages-each-database-has-in-bufferpool/#comments</comments> <pubDate>Sat, 20 Jun 2009 03:01:10 +0000</pubDate> <dc:creator>Derek Dieter</dc:creator> <category><![CDATA[DMV Queries]]></category> <category><![CDATA[buffer pool]]></category><guid isPermaLink="false">http://sqlserverplanet.com/?p=291</guid> <description><![CDATA[This query shows how many pages each database has in the buffer Pool. This will show you the breakdown of memory allocation for each database. SELECT DB_NAME(database_id), COUNT(page_id)as number_pages FROM sys.dm_os_buffer_descriptors WHERE database_id !=32767 GROUP BY database_id ORDER BY database_id Related Posts:»Find Best Clustered Index»Finding the total virtual, shared and AWE memory used»Using sp_spaceused»A Better [...]]]></description> <wfw:commentRss>http://sqlserverplanet.com/dmv-queries/find-number-of-pages-each-database-has-in-bufferpool/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Find Queries with Highest Reads (Highest IO)</title><link>http://sqlserverplanet.com/dmv-queries/find-queries-with-highest-reads-highest-io/</link> <comments>http://sqlserverplanet.com/dmv-queries/find-queries-with-highest-reads-highest-io/#comments</comments> <pubDate>Fri, 19 Jun 2009 07:45:06 +0000</pubDate> <dc:creator>Derek Dieter</dc:creator> <category><![CDATA[DMV Queries]]></category><guid isPermaLink="false">http://sqlserverplanet.com/?p=284</guid> <description><![CDATA[SELECT TOP 10 'Procedure' = qt.text ,DiskReads = qs.total_physical_reads -- The worst reads, disk reads ,MemoryReads = qs.total_logical_reads --Logical Reads are memory reads ,Executions = qs.execution_count ,CPUTime = qs.total_worker_time ,DiskWaitAndCPUTime = qs.total_elapsed_time ,MemoryWrites = qs.max_logical_writes ,DateCached = qs.creation_time ,DatabaseName = DB_Name(qt.dbid) ,LastExecutionTime = qs.last_execution_time FROM sys.dm_exec_query_stats AS qs CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) AS qt ORDER BY [...]]]></description> <wfw:commentRss>http://sqlserverplanet.com/dmv-queries/find-queries-with-highest-reads-highest-io/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>A Better sp_who2 using DMVs (sp_who3)</title><link>http://sqlserverplanet.com/dmv-queries/a-better-sp_who2-using-dmvs-sp_who3/</link> <comments>http://sqlserverplanet.com/dmv-queries/a-better-sp_who2-using-dmvs-sp_who3/#comments</comments> <pubDate>Fri, 19 Jun 2009 07:18:20 +0000</pubDate> <dc:creator>Derek Dieter</dc:creator> <category><![CDATA[DBA]]></category> <category><![CDATA[DMV Queries]]></category> <category><![CDATA[sp_who2]]></category><guid isPermaLink="false">http://sqlserverplanet.com/?p=275</guid> <description><![CDATA[The following code generates the same information found in sp_who2, along with some additional troubleshooting information. It also contains the SQL Statement being run, so instead of having to execute a separate DBCC INPUTBUFFER, the statement being executed is shown in the results. Unlike sp_who2, sp_who3 only shows sessions that have a current executing request. [...]]]></description> <wfw:commentRss>http://sqlserverplanet.com/dmv-queries/a-better-sp_who2-using-dmvs-sp_who3/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 66/76 queries in 0.087 seconds using disk
Content Delivery Network via files.sqlserverplanet.com

Served from: sqlserverplanet.com @ 2010-07-31 09:06:48 -->