Forum Replies Created

Viewing 15 posts - 3,526 through 3,540 (of 18,926 total)

  • RE: Use Dynamic SQL in a function? Not working.

    Thank you and your "senior".

    Code like this allows guys like me to come back in after perf tanks and charge unhuman amount of $ for what I'm telling you free...

  • RE: Tuning a query

    ELEPHANT.

    The first 4 inserts could be merge into a single one as far as I can see.

    The FROM / where / group by seem 99% identical.

    A couple well placed case...

  • RE: Tuning a query

    chandan_jha18 (8/9/2011)


    GilaMonster (8/9/2011)


    chandan_jha18 (8/9/2011)


    If a plan has seek operators, does it mean that it is good enough? My plan has so many scalar operators too. Not sure what to make...

  • RE: Tuning a query

    Just to be 100% clear.

    This is NOT a sp with input parameters?

    If I'm wrong here I'll need to full sp, not just this 99% sample.

    P.S. This runs in 5 secs?...

  • RE: Tuning a query

    GilaMonster (8/9/2011)


    chandan_jha18 (8/9/2011)


    If a plan has seek operators, does it mean that it is good enough? My plan has so many scalar operators too. Not sure what to make out...

  • RE: Tuning a query

    chandan_jha18 (8/9/2011)


    Ninja's_RGR'us (8/9/2011)


    Yes, stats seem stale / wrong.

    The row estimate is 1 and the actual count is over 100K iirc. That's why we're all pounding on this one.

    As per...

  • RE: Avoiding insertion of duplicate rows

    Insert into base...

    SELECT FROM qry .... WHERE NOT EXISTS (SELECT * FROM base where qry.id = base.id)

  • RE: Tuning a query

    chandan_jha18 (8/9/2011)


    If a plan has seek operators, does it mean that it is good enough? My plan has so many scalar operators too. Not sure what to make out from...

  • RE: Tuning a query

    Yes, stats seem stale / wrong.

    The row estimate is 1 and the actual count is over 100K iirc. That's why we're all pounding on this one.

  • RE: Opening .sql in SSMS - R2

    The requirement is also NOT to close the currently opened windows.

    There's a reason that debate lasted over 100 posts in that other thread. There's no simple, easy solution ;-).

    I'm...

  • RE: Tuning a query

    chandan_jha18 (8/9/2011)


    Ninja's_RGR'us (8/9/2011)


    Did you update with fullscan, if not by what %?

    I just ran:

    exec sp_updatestats.

    Do i need to modify this statement. please advice.

    Just FYI. Following are the number of...

  • RE: Tuning a query

    I'd still like to see th whole SP.

    In the mean time you could experiment with this >

    http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries

    You seem to be fine here, but I would also change to inner joins....

  • RE: Noobie Question: GetDate() in UDF

    Welcome to 2k5 +.

    It was still like you expected in 2000.

  • RE: Tuning a query

    Did you update with fullscan, if not by what %?

  • RE: Learning SSRS and need help

    http://www.sqlservercentral.com/stairway/72382/

    And for that particular problem you simply have to use subreports.

Viewing 15 posts - 3,526 through 3,540 (of 18,926 total)