• SQL_Surfer - Saturday, July 15, 2017 9:15 PM

    Same database, same tables, same query but running on two different servers bringing two different execution plans. plan1_server1 gets executed in under 2 secs but plan2_server2 gets executed in 8 seconds. Both returns the same number of rows. Can anybody help me out here looking at these two execution plans? What do i need to do on server 2, to get the result at the similar speed?

    --SQL_Surfer

    Neither SSMS nor SQL Sentry Plan Explorer will open these files.

    “Write the query the simplest way. If through testing it becomes clear that the performance is inadequate, consider alternative query forms.” - Gail Shaw

    For fast, accurate and documented assistance in answering your questions, please read this article.
    Understanding and using APPLY, (I) and (II) Paul White
    Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden