<?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-Performance | Varinder Sandhu</title>
	<atom:link href="https://varindersandhu.in/category/sql/sql-performance/feed/" rel="self" type="application/rss+xml" />
	<link>https://varindersandhu.in</link>
	<description>Keep it Simple and Smart</description>
	<lastBuildDate>Tue, 14 May 2013 11:18:23 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>

<image>
	<url>https://varindersandhu.in/wp-content/uploads/2020/05/varindersandhu_favicon.ico</url>
	<title>SQL-Performance | Varinder Sandhu</title>
	<link>https://varindersandhu.in</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">22788835</site>	<item>
		<title>SQL Server – Last Execution Date/Time of a Stored Procedure</title>
		<link>https://varindersandhu.in/2012/04/19/sql-server-last-execution-datetime-of-a-stored-procedure/</link>
		
		<dc:creator><![CDATA[Varinder Sandhu]]></dc:creator>
		<pubDate>Thu, 19 Apr 2012 14:44:16 +0000</pubDate>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL-Advanced]]></category>
		<category><![CDATA[SQL-Performance]]></category>
		<category><![CDATA[SQL-Scripts]]></category>
		<category><![CDATA[SQL-Tips and Tricks]]></category>
		<category><![CDATA[Varinder Sandhu]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Sys.dm_exec_procedure_stats]]></category>
		<guid isPermaLink="false">http://www.varindersandhu.in/?p=2341</guid>

					<description><![CDATA[<p>If you want to get the  Last Execution Date/Time of a Stored Procedure then here is solution. Sys.dm_exec_procedure_stats it’s a system dynamic view that returns aggregate performance statistics for cached stored procedures. This view has been introduced from SQL Server 2008. The view returns one row for each cached stored</p>
<p>The post <a href="https://varindersandhu.in/2012/04/19/sql-server-last-execution-datetime-of-a-stored-procedure/">SQL Server – Last Execution Date/Time of a Stored Procedure</a> first appeared on <a href="https://varindersandhu.in">Varinder Sandhu</a>.</p>]]></description>
		
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2341</post-id>	</item>
		<item>
		<title>SQL Server &#8211; Stop/Close a Server-Side Trace</title>
		<link>https://varindersandhu.in/2011/11/11/sql-server-stop-close-a-server-side-trace/</link>
		
		<dc:creator><![CDATA[Varinder Sandhu]]></dc:creator>
		<pubDate>Fri, 11 Nov 2011 07:40:22 +0000</pubDate>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL-Advanced]]></category>
		<category><![CDATA[SQL-Performance]]></category>
		<category><![CDATA[SQL-Tips and Tricks]]></category>
		<category><![CDATA[Varinder Sandhu]]></category>
		<category><![CDATA[Server Side Trace]]></category>
		<category><![CDATA[sp_trace_setstatus]]></category>
		<category><![CDATA[SQL Server]]></category>
		<guid isPermaLink="false">http://www.varindersandhu.in/?p=1961</guid>

					<description><![CDATA[<p>This function “sp_trace_setstatus” modifies the current state of the specified trace. Syntax sp_trace_setstatus [ @traceid = ] trace_id , [ @status = ] status Example --See the Ruuning trace SELECT * FROM ::fn_trace_getinfo(NULL) -- Stop thr Running Trace EXEC sp_trace_setstatus @traceid = 1 , @status = 0 -- Delete the</p>
<p>The post <a href="https://varindersandhu.in/2011/11/11/sql-server-stop-close-a-server-side-trace/">SQL Server – Stop/Close a Server-Side Trace</a> first appeared on <a href="https://varindersandhu.in">Varinder Sandhu</a>.</p>]]></description>
		
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1961</post-id>	</item>
		<item>
		<title>SQL Server &#8211; System Trace Functions</title>
		<link>https://varindersandhu.in/2011/11/10/sql-server-system-trace-functions/</link>
		
		<dc:creator><![CDATA[Varinder Sandhu]]></dc:creator>
		<pubDate>Thu, 10 Nov 2011 11:31:10 +0000</pubDate>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL-Advanced]]></category>
		<category><![CDATA[SQL-Performance]]></category>
		<category><![CDATA[SQL-Tips and Tricks]]></category>
		<category><![CDATA[Varinder Sandhu]]></category>
		<category><![CDATA[fn_trace_geteventinfo]]></category>
		<category><![CDATA[fn_trace_getfilterinfo]]></category>
		<category><![CDATA[fn_trace_getinfo]]></category>
		<category><![CDATA[fn_trace_gettable]]></category>
		<category><![CDATA[System Trace Function]]></category>
		<guid isPermaLink="false">http://www.varindersandhu.in/?p=1951</guid>

					<description><![CDATA[<p>SQL Server provides the following system trace functions that are useful if you are working with trace. fn_trace_getinfo fn_trace_gettable fn_trace_getfilterinfo fn_trace_geteventinfo fn_trace_getinfo This function returns the information of a specified trace or all running traces. Syntax fn_trace_getinfo ( { trace_id &#124; NULL &#124; 0 &#124; DEFAULT } ) Example See</p>
<p>The post <a href="https://varindersandhu.in/2011/11/10/sql-server-system-trace-functions/">SQL Server – System Trace Functions</a> first appeared on <a href="https://varindersandhu.in">Varinder Sandhu</a>.</p>]]></description>
		
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1951</post-id>	</item>
		<item>
		<title>SQL Server – Find the expensive queries with Server Side Trace</title>
		<link>https://varindersandhu.in/2011/11/10/sql-server-find-the-expensive-queries-with-server-side-trace/</link>
					<comments>https://varindersandhu.in/2011/11/10/sql-server-find-the-expensive-queries-with-server-side-trace/#comments</comments>
		
		<dc:creator><![CDATA[Varinder Sandhu]]></dc:creator>
		<pubDate>Thu, 10 Nov 2011 07:32:44 +0000</pubDate>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL-Advanced]]></category>
		<category><![CDATA[SQL-Performance]]></category>
		<category><![CDATA[SQL-Tips and Tricks]]></category>
		<category><![CDATA[Varinder Sandhu]]></category>
		<category><![CDATA[Expensive Queries]]></category>
		<category><![CDATA[Server Side Trace]]></category>
		<guid isPermaLink="false">http://www.varindersandhu.in/?p=1938</guid>

					<description><![CDATA[<p>With the help of this post sharing with you the procedure to find the expensive queries with Server Side trace. First we see how to create a server side trace script. Run the Profiler Trace as mentioned here Go to the File &#62;&#62; Export &#62;&#62; Script Trace Definition &#62;&#62; For</p>
<p>The post <a href="https://varindersandhu.in/2011/11/10/sql-server-find-the-expensive-queries-with-server-side-trace/">SQL Server – Find the expensive queries with Server Side Trace</a> first appeared on <a href="https://varindersandhu.in">Varinder Sandhu</a>.</p>]]></description>
		
					<wfw:commentRss>https://varindersandhu.in/2011/11/10/sql-server-find-the-expensive-queries-with-server-side-trace/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1938</post-id>	</item>
		<item>
		<title>SQL Server &#8211; Steps to create the Profiler Trace</title>
		<link>https://varindersandhu.in/2011/11/08/sql-server-steps-to-create-the-profiler-trace/</link>
					<comments>https://varindersandhu.in/2011/11/08/sql-server-steps-to-create-the-profiler-trace/#comments</comments>
		
		<dc:creator><![CDATA[Varinder Sandhu]]></dc:creator>
		<pubDate>Tue, 08 Nov 2011 10:54:56 +0000</pubDate>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL-Advanced]]></category>
		<category><![CDATA[SQL-Performance]]></category>
		<category><![CDATA[Varinder Sandhu]]></category>
		<category><![CDATA[Profiler Trace]]></category>
		<guid isPermaLink="false">http://www.varindersandhu.in/?p=1925</guid>

					<description><![CDATA[<p>With the help of this post sharing with you the steps to create the Profiler Trace. Open the SQL Server Management Studio &#62;&#62; Go to Tools &#62;&#62; SQL Server Profiler It is mandatory for the user to have system admin rights to start the profiler. Once the profiler is started</p>
<p>The post <a href="https://varindersandhu.in/2011/11/08/sql-server-steps-to-create-the-profiler-trace/">SQL Server – Steps to create the Profiler Trace</a> first appeared on <a href="https://varindersandhu.in">Varinder Sandhu</a>.</p>]]></description>
		
					<wfw:commentRss>https://varindersandhu.in/2011/11/08/sql-server-steps-to-create-the-profiler-trace/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1925</post-id>	</item>
		<item>
		<title>SQL Server &#8211; Profiler Trace Vs Server Side Trace</title>
		<link>https://varindersandhu.in/2011/11/07/sql-server-profiler-trace-vs-server-side-trace/</link>
		
		<dc:creator><![CDATA[Varinder Sandhu]]></dc:creator>
		<pubDate>Mon, 07 Nov 2011 05:07:02 +0000</pubDate>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL-Advanced]]></category>
		<category><![CDATA[SQL-Performance]]></category>
		<category><![CDATA[Varinder Sandhu]]></category>
		<category><![CDATA[Profiler Trace]]></category>
		<category><![CDATA[Server Side Trace]]></category>
		<guid isPermaLink="false">http://www.varindersandhu.in/?p=1917</guid>

					<description><![CDATA[<p>Profiler Trace Profiler Trace using the standard default template supplied by SQL Server with SQL Profiler. SQL Profiler running on a client machine and it is connected to the SQL Server instance over the network. Server Side Trace The Script is used to create Server Side Trace. You can generate for</p>
<p>The post <a href="https://varindersandhu.in/2011/11/07/sql-server-profiler-trace-vs-server-side-trace/">SQL Server – Profiler Trace Vs Server Side Trace</a> first appeared on <a href="https://varindersandhu.in">Varinder Sandhu</a>.</p>]]></description>
		
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1917</post-id>	</item>
		<item>
		<title>SQL Server – File stats using Fn_virtualfilestats</title>
		<link>https://varindersandhu.in/2011/11/03/sql-server-file-stats-using-fn_virtualfilestats/</link>
		
		<dc:creator><![CDATA[Varinder Sandhu]]></dc:creator>
		<pubDate>Thu, 03 Nov 2011 12:35:34 +0000</pubDate>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL-Advanced]]></category>
		<category><![CDATA[SQL-Performance]]></category>
		<category><![CDATA[SQL-Tips and Tricks]]></category>
		<category><![CDATA[Varinder Sandhu]]></category>
		<category><![CDATA[Fn_virtualfilestats]]></category>
		<category><![CDATA[SQL Server]]></category>
		<guid isPermaLink="false">http://www.varindersandhu.in/?p=1903</guid>

					<description><![CDATA[<p>Fn_virtualfilestats() is in-build function in the SQL Server and really useful for understanding the amount of I/O within individual files on your SQL Server system. It returns I/O statistics for database files, including log files. Syntax fn_virtualfilestats ( { database_id &#124; NULL } , { file_id &#124; NULL } )</p>
<p>The post <a href="https://varindersandhu.in/2011/11/03/sql-server-file-stats-using-fn_virtualfilestats/">SQL Server – File stats using Fn_virtualfilestats</a> first appeared on <a href="https://varindersandhu.in">Varinder Sandhu</a>.</p>]]></description>
		
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1903</post-id>	</item>
		<item>
		<title>SQL Server &#8211; Reset or Clear the Wait Stats counter</title>
		<link>https://varindersandhu.in/2011/11/03/sql-server-reset-or-clear-the-wait-stats-counter/</link>
		
		<dc:creator><![CDATA[Varinder Sandhu]]></dc:creator>
		<pubDate>Thu, 03 Nov 2011 07:39:22 +0000</pubDate>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL-Advanced]]></category>
		<category><![CDATA[SQL-Performance]]></category>
		<category><![CDATA[SQL-Tips and Tricks]]></category>
		<category><![CDATA[Varinder Sandhu]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Wait Stats]]></category>
		<guid isPermaLink="false">http://www.varindersandhu.in/?p=1892</guid>

					<description><![CDATA[<p>We can find the wait stats as posted here We can Reset or clear the wait stats using -- Reset or clear the wait stats counter DBCC SQLPERF (waitstats, clear) Hope this will help you.</p>
<p>The post <a href="https://varindersandhu.in/2011/11/03/sql-server-reset-or-clear-the-wait-stats-counter/">SQL Server – Reset or Clear the Wait Stats counter</a> first appeared on <a href="https://varindersandhu.in">Varinder Sandhu</a>.</p>]]></description>
		
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1892</post-id>	</item>
		<item>
		<title>SQL Server &#8211; Capture the Wait Stats to table for analysis</title>
		<link>https://varindersandhu.in/2011/11/02/sql-server-capture-the-wait-stats-to-table-for-analysis/</link>
					<comments>https://varindersandhu.in/2011/11/02/sql-server-capture-the-wait-stats-to-table-for-analysis/#comments</comments>
		
		<dc:creator><![CDATA[Varinder Sandhu]]></dc:creator>
		<pubDate>Wed, 02 Nov 2011 12:07:24 +0000</pubDate>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL-Advanced]]></category>
		<category><![CDATA[SQL-Performance]]></category>
		<category><![CDATA[SQL-Tips and Tricks]]></category>
		<category><![CDATA[Varinder Sandhu]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Wait Stats]]></category>
		<guid isPermaLink="false">http://www.varindersandhu.in/?p=1881</guid>

					<description><![CDATA[<p>We can find the SQL Server wait stats by using DBCC SQLPERF (waitstats) &#160; Now we need to capture all these wait stats to table for analysis --Create a temp table for waitstats CREATE TABLE #waitstats ( wait_type VARCHAR(500), Request REAL, wait_time REAL, signal_wait_time REAL ) -- Insert the waitstats</p>
<p>The post <a href="https://varindersandhu.in/2011/11/02/sql-server-capture-the-wait-stats-to-table-for-analysis/">SQL Server – Capture the Wait Stats to table for analysis</a> first appeared on <a href="https://varindersandhu.in">Varinder Sandhu</a>.</p>]]></description>
		
					<wfw:commentRss>https://varindersandhu.in/2011/11/02/sql-server-capture-the-wait-stats-to-table-for-analysis/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1881</post-id>	</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Page Caching using Disk: Enhanced 
Database Caching using Disk (Request-wide modification query)

Served from: varindersandhu.in @ 2025-10-30 14:12:12 by W3 Total Cache
-->