Viewing 15 posts - 376 through 390 (of 608 total)
Not sure if this is really a parameter sniffing issue...
I added the 'with RECOMPILE' option to the end of my proc
Declare @nRC int, @rnSQLError int
exec @nRC = psp_x_hist_inq ...
October 25, 2010 at 8:14 am
okay...I setup a job to clear the cache lat tonight...
thanks for all your help...hope it works
October 22, 2010 at 12:52 pm
okay I ran this :
SELECT cp.plan_handle, st.[text]
FROM sys.dm_exec_cached_plans AS cp
CROSS APPLY sys.dm_exec_sql_text(plan_handle) AS st
WHERE [text] LIKE N'%/* psp %';
and it found two plan handles...that look like my proc
now...
October 22, 2010 at 11:06 am
wierd thing is if I change to a different accoutn number then everything returns fast
same query in prod.. same everything..if I change the account number to someone elses it's fast...
October 22, 2010 at 10:35 am
yep checked for all those....doesn't seem to be waiting on anything..
and this prod server isn't heavily used...
I also tried
while (1=1)
select waitime,waittype,lastwaittype from sysprocesses where SPID=<the query SPID> where waittime...
October 22, 2010 at 10:33 am
Yeah sorry....the execution plans are identical on both stage and production...
but return times are 2 seconds on stage....3minutes in prod.
October 22, 2010 at 10:08 am
Didn't think about using plan guides....
I'll read up on it..
I have the plan from the stage server..can I force the prod server to use that plan?
Although the plans appear...
October 22, 2010 at 9:59 am
already used with recompile...no luck
can't drop cause it's in use..
I created a new proc (myproc_2) which was a copy of the existing query and then ran against that...still slow...
any other...
October 22, 2010 at 9:33 am
I re-complied but slowness still exists..
We are gonna try bouncing the server this weekend.
October 22, 2010 at 7:45 am
yeah it helps thank you..
October 21, 2010 at 3:23 pm
okay so I followed your advise ...ran the execution plan on both prod and stage boxes..
On my prod box (query 4) I have a clustered index scan..cost of 81 percent
I...
October 21, 2010 at 12:25 pm
it is not on backorder?
anyone actually have a real dev edition?
September 1, 2010 at 9:03 am
It was permissions!
Thanks guys!
Good karma to you all..
August 4, 2010 at 6:38 am
Viewing 15 posts - 376 through 390 (of 608 total)