<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pt-br">
		<id>http://wiki.mstech.com.br/index.php?action=history&amp;feed=atom&amp;title=Identifica_as_querys_com_custo_elevado_de_processamento</id>
		<title>Identifica as querys com custo elevado de processamento - Histórico de revisão</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.mstech.com.br/index.php?action=history&amp;feed=atom&amp;title=Identifica_as_querys_com_custo_elevado_de_processamento"/>
		<link rel="alternate" type="text/html" href="http://wiki.mstech.com.br/index.php?title=Identifica_as_querys_com_custo_elevado_de_processamento&amp;action=history"/>
		<updated>2026-05-07T17:44:20Z</updated>
		<subtitle>Histórico de revisões para esta página neste wiki</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>http://wiki.mstech.com.br/index.php?title=Identifica_as_querys_com_custo_elevado_de_processamento&amp;diff=2118&amp;oldid=prev</id>
		<title>Daniel.alves em 16h27min de 23 de agosto de 2016</title>
		<link rel="alternate" type="text/html" href="http://wiki.mstech.com.br/index.php?title=Identifica_as_querys_com_custo_elevado_de_processamento&amp;diff=2118&amp;oldid=prev"/>
				<updated>2016-08-23T16:27:23Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='pt-BR'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Edição anterior&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Edição das 16h27min de 23 de agosto de 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Linha 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linha 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Este script retorna as '''querys''' que mais consomem tempo de execução pelo SQL Server.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Este script retorna as '''querys''' que mais consomem tempo de execução pelo SQL Server.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;sql&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot; line=&amp;quot;1&lt;/del&gt;&amp;quot; &amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;sql&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;SELECT TOP 15&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;SELECT TOP 15&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Daniel.alves</name></author>	</entry>

	<entry>
		<id>http://wiki.mstech.com.br/index.php?title=Identifica_as_querys_com_custo_elevado_de_processamento&amp;diff=1733&amp;oldid=prev</id>
		<title>Daniel.alves: Criou página com 'Este script retorna as '''querys''' que mais consomem tempo de execução pelo SQL Server.  &lt;syntaxhighlight lang=&quot;sql&quot; line=&quot;1&quot; &gt; SELECT TOP 15      SUM(query_stats.total_wor...'</title>
		<link rel="alternate" type="text/html" href="http://wiki.mstech.com.br/index.php?title=Identifica_as_querys_com_custo_elevado_de_processamento&amp;diff=1733&amp;oldid=prev"/>
				<updated>2016-08-04T18:00:15Z</updated>
		
		<summary type="html">&lt;p&gt;Criou página com &amp;#039;Este script retorna as &amp;#039;&amp;#039;&amp;#039;querys&amp;#039;&amp;#039;&amp;#039; que mais consomem tempo de execução pelo SQL Server.  &amp;lt;syntaxhighlight lang=&amp;quot;sql&amp;quot; line=&amp;quot;1&amp;quot; &amp;gt; SELECT TOP 15      SUM(query_stats.total_wor...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Este script retorna as '''querys''' que mais consomem tempo de execução pelo SQL Server.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sql&amp;quot; line=&amp;quot;1&amp;quot; &amp;gt;&lt;br /&gt;
SELECT TOP 15&lt;br /&gt;
&lt;br /&gt;
    SUM(query_stats.total_worker_time) / SUM(query_stats.execution_count) AS &amp;quot;Avg CPU Time&amp;quot;,&lt;br /&gt;
    MIN(query_stats.statement_text) AS &amp;quot;Statement Text&amp;quot;&lt;br /&gt;
FROM&lt;br /&gt;
    (SELECT QS.*,&lt;br /&gt;
    SUBSTRING(ST.text, (QS.statement_start_offset/2) + 1,&lt;br /&gt;
    ((CASE statement_end_offset&lt;br /&gt;
        WHEN -1 THEN DATALENGTH(st.text)&lt;br /&gt;
        ELSE QS.statement_end_offset END     &lt;br /&gt;
             - QS.statement_start_offset)/2) + 1) AS statement_text&lt;br /&gt;
     FROM sys.dm_exec_query_stats AS QS&lt;br /&gt;
     CROSS APPLY sys.dm_exec_sql_text(QS.sql_handle) as ST) as query_stats&lt;br /&gt;
GROUP BY query_stats.query_hash&lt;br /&gt;
ORDER BY 1 DESC;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Daniel.alves</name></author>	</entry>

	</feed>