Same Databases in different server I run same queries but execution plans are different

  • Hi All,

    I have 2 same queries in same databases but in different servers. I run same queries, bu execution plans are different. one took 10 seconds the other is over 5 minutes.

    I updated statistics but result did not change.

    What will cause this situation?

    Regards,

  • A number of things could cause this.

    1. SQL Version Number

    2. Differences in data and data distribution in the required tables

    3. Index differences

    4. Schema differences

    5. Database configuration options

    6. Server configuration options

    What have you compared so far?

  • Slower queries' server has the newest SQL Server version number. And all other factors are the same.

  • This was removed by the editor as SPAM

  • This is a DWH system. There are only clustered indexes.

  • This was removed by the editor as SPAM

  • Stewart "Arturius" Campbell (7/10/2012)


    Therein lies the issue.

    There is a good chance that, with only clustered indexes, Clustered Index Scans are being performed on the table(s).

    Seeks are much more efficient.

    Is it possible to attach the two execution plans for review?

    & DDL

  • Now, I opened a case to microsoft.

Viewing 8 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic. Login to reply