﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / SQL Server 2005 Performance Tuning  / Sp performence. / 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>Sat, 25 May 2013 13:58:19 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Sp performence.</title><link>http://www.sqlservercentral.com/Forums/Topic1394401-360-1.aspx</link><description>[quote][b]e4d4 (12/9/2012)[/b][hr]If stats are accurate, then most probably you encounter problem with [url=http://sqlinthewild.co.za/index.php/2007/11/27/parameter-sniffing/]http://sqlinthewild.co.za/index.php/2007/11/27/parameter-sniffing/[/url][/quote]+1. Excellent link.Nitin, I've faced such situations in real time scenarios. I tried a lot, moved from here to there, tested every possibility. Finally found this parameter sniffing stuff. For me, changing the procedure with recompile option worked well.</description><pubDate>Mon, 24 Dec 2012 05:06:40 GMT</pubDate><dc:creator>sqlnaive</dc:creator></item><item><title>RE: Sp performence.</title><link>http://www.sqlservercentral.com/Forums/Topic1394401-360-1.aspx</link><description>[quote][b]nitin.varshney (12/9/2012)[/b][hr]@Gila: How can we know the wait type and locking objects ? there is no any blockage in sp_who2 active command.[/quote]Query sys.dm_exec_requests. There are several columns relating to the waits.</description><pubDate>Sun, 09 Dec 2012 12:21:31 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: Sp performence.</title><link>http://www.sqlservercentral.com/Forums/Topic1394401-360-1.aspx</link><description>[quote][b]nitin.varshney (12/9/2012)[/b][hr]is the sp execution plan will be changed for the grouping of small and large data set in the sp ?[/quote]Not unless something invalidates or removes the one plan and regenerates. A stored procedure has a single execution plan cached for it.</description><pubDate>Sun, 09 Dec 2012 12:21:02 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: Sp performence.</title><link>http://www.sqlservercentral.com/Forums/Topic1394401-360-1.aspx</link><description>@Gila: How can we know the wait type and locking objects ? there is no any blockage in sp_who2 active command.</description><pubDate>Sun, 09 Dec 2012 11:17:44 GMT</pubDate><dc:creator>nitin.varshney</dc:creator></item><item><title>RE: Sp performence.</title><link>http://www.sqlservercentral.com/Forums/Topic1394401-360-1.aspx</link><description>is the sp execution plan will be changed for the grouping of small and large data set in the sp ?</description><pubDate>Sun, 09 Dec 2012 11:15:35 GMT</pubDate><dc:creator>nitin.varshney</dc:creator></item><item><title>RE: Sp performence.</title><link>http://www.sqlservercentral.com/Forums/Topic1394401-360-1.aspx</link><description>Not enough information.Could be locks or waits for other resourcesCould be bad exec plansCould be several other things.When it runs slow, what's the wait type?</description><pubDate>Sun, 09 Dec 2012 10:58:59 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: Sp performence.</title><link>http://www.sqlservercentral.com/Forums/Topic1394401-360-1.aspx</link><description>If stats are accurate, then most probably you encounter problem with [url=http://sqlinthewild.co.za/index.php/2007/11/27/parameter-sniffing/]http://sqlinthewild.co.za/index.php/2007/11/27/parameter-sniffing/[/url]</description><pubDate>Sun, 09 Dec 2012 10:14:44 GMT</pubDate><dc:creator>e4d4</dc:creator></item><item><title>Sp performence.</title><link>http://www.sqlservercentral.com/Forums/Topic1394401-360-1.aspx</link><description>Hi,I am facing one issue in SP at prod. which is running at QA and staging within 1-2 mins. But at prod some time it is running in 1-2 min and some time it is not running even in 45 mins.What can be the reason for that.Even all indexs are fine and no any Backup/maintainance activity running at prod.ThanksNitin Varshney</description><pubDate>Sun, 09 Dec 2012 09:38:35 GMT</pubDate><dc:creator>nitin.varshney</dc:creator></item></channel></rss>