Forum Replies Created

Viewing 15 posts - 766 through 780 (of 5,843 total)

  • RE: Running totals on different columns

    ROWS is (almost ?) ALWAYS offers MUCH better performance than RANGE! Try your best to use ROWS when possible.

  • RE: Execution plan ignoring a Temp Table being used to filter the results

    ChrisM@Work (9/12/2016)


    Phil Parkin (9/12/2016)


    Don't explicitly drop the #temp table

    Hi Chris. Can you explain a little how not dropping the temp table affects things, please?

    From memory Phil, if you explicitly drop...

  • RE: query slow with variable, fast with constant .. using option (recompile) inside if exists

    I have a STRONG vote for OPTION (RECOMPILE). That way you always get the best chance for the "optimal" plan no matter what your input(s) are.

  • RE: update statistc

    rajemessage 14195 (9/9/2016)


    yes i think this was the reason

    well some body said DBCC UPDATEUSAGE (0); is also needed, is it correct?

    That should not be needed on modern versions of SQL...

  • RE: update statistc

    Which query is slower?

    sp_whoisactive to find currently-running stuff that is waiting/blocked.

    Get a copy of Glenn Berry's SQL Server Diagnostic Scripts and use the goodness therein to find bad things.

  • RE: Management Data Warehouse

    sp_whoisactive can be put into a table and track/trend

    Glenn Berry's SQL Server Diagnostics scripts have lots of things you can store in a table and track/trend (file IO stalls and...

  • RE: Management Data Warehouse

    ichervin (9/6/2016)


    Hello All,

    I have setup a MDW and it was working fine until recently. Now I get No Data Available. How do I troubleshoot it?

    Thanks.

    Honestly you simply stop using it....

  • RE: Tempdb high i/o but no memory pressure

    gary789 (9/5/2016)


    Hi again,

    I think i've just worked this out... its spills.

    I've not noticed in the past but on checking some execution plans there are spill warnings for tempdb.

    This points to...

  • RE: Indexed Views and Reporting

    mikes84 (9/2/2016)


    Ok great advice. Thank you!

    One more question -- If I plan to use Ola Hallengren's maintenance scripts for full, differential, and transaction log backups (or even if I create...

  • RE: Send rows of data to stored procedure in linked server

    1) Insert the data into a table on the linked server and access it directly from there with the local sproc.

    2) Use a table valued parameter to pass the data...

  • RE: Indexed Views and Reporting

    mikes84 (9/2/2016)


    Thanks, Kevin! I've seen your sessions at SQL Saturdays before -- always very informative.

    And just to clarify, you would recommend Log Shipping over mirroring or replication? Also, I assume...

  • RE: Tempdb high i/o but no memory pressure

    1) What metric you gave do you think indicates that SQL Server has lots of free RAM do devote to temp objects?

    2) TSQL ad hoc queries can create explicit temp...

  • RE: Indexed Views and Reporting

    1) If you put indexed views on top of an OLTP database you can DESTROY that application's performance and concurrency!! And by destroy I mean make absolutely unusable.

    2) There are...

  • RE: [HELP] SQL Server 2014 Database Tuning Advisor

    I don't know about the issue, but I will say PLEASE DON'T USE DTA unless you REALLY REALLY know what you are doing!!!! And if you do, then you won't...

  • RE: DELETE making SELECT slow in RCSI

    ScottPletcher (8/31/2016)


    TheSQLGuru (8/31/2016)


    The optimizer can and often does (in my experience) introduce a SORT into the query plan on a small table to facilitate a merge join against a larger...

Viewing 15 posts - 766 through 780 (of 5,843 total)