• dave-L (9/15/2013)


    ...

    Is there a way for my to track down which query plans are generating the increased number of hash joins, or some how see what exactly is creating these work files?...

    You sure can check the plans in cache, and search the XML for "Hash Match" occuring.

    This might give you a start

    SELECT * FROM sys.dm_exec_cached_plans AS dm_exec_cached_plans

    CROSS APPLY sys.dm_exec_sql_text(dm_exec_cached_plans.plan_handle) dm_exec_sql_text

    CROSS APPLY sys.dm_exec_query_plan(dm_exec_cached_plans.plan_handle) dm_exec_query_plan

    you can then use the nodes function to serach the XML from the plan

    Andreas

    ---------------------------------------------------
    MVP SQL Server
    Microsoft Certified Master SQL Server 2008
    Microsoft Certified Solutions Master Data Platform, SQL Server 2012
    www.insidesql.org/blogs/andreaswolter
    www.andreas-wolter.com