Does running a SQL Server 2005 database in compatibility level 80 have a negative impact on performance?

前端 未结 4 1088
半阙折子戏
半阙折子戏 2021-01-04 10:12

Our software must be able to run on SQL Server 2000 and 2005. To simplify development, we\'re running our SQL Server 2005 databases in compatibility level 80. However, dat

4条回答
  •  北荒
    北荒 (楼主)
    2021-01-04 11:07

    Are you using subselects in your queries?

    From my experience, a SELECT statement with subselects that runs fine on SQL Server 2000 can crawl on SQL Server 2005 (it can be like 10x slower!).

    Make an experiment - re-write one query to eliminate the subselects and see how its performance changes.

提交回复
热议问题