Forum Replies Created

Viewing 15 posts - 376 through 390 (of 608 total)

  • RE: Wierd one..

    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 ...

  • RE: Wierd one..

    okay...I setup a job to clear the cache lat tonight...

    thanks for all your help...hope it works

  • RE: Wierd one..

    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...

  • RE: Wierd one..

    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...

  • RE: Wierd one..

    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...

  • RE: Wierd one..

    Yeah sorry....the execution plans are identical on both stage and production...

    but return times are 2 seconds on stage....3minutes in prod.

  • RE: Wierd one..

    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...

  • RE: Wierd one..

    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...

  • RE: Wierd one..

    I re-complied but slowness still exists..

    We are gonna try bouncing the server this weekend.

  • RE: Star Schema or Cube ... advantages to each?

    yeah it helps thank you..

  • RE: Wierd one..

    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...

  • RE: Wierd one..

    the execution plans appear to be the same...

  • RE: Monitor Individual User resources used

    Thank you!

  • RE: 2008 R2 Devleoper Edition

    it is not on backorder?

    anyone actually have a real dev edition?

  • RE: Linked Server Catalog

    It was permissions!

    Thanks guys!

    Good karma to you all..

Viewing 15 posts - 376 through 390 (of 608 total)