|
Posted by Erland Sommarskog on 12/16/06 11:39
Nishant Saini (nishant.saini@gmail.com) writes:
> Thanks for the responses...
>
> Yes, The execution plans are different in both the databases.
> Why the execution plans are so different in both the versions of SQL
> Server 2005?
There could be many reasons for that. Roy Harvey mentioned indexed views
for instance.
If you want a better answer, please post the query and the two plans,
so that we know what we are talking about.
> Can we control the execution plans?
Yes. SQL 2005 actually permit you to specify the plan exactly to using
plan guides. This is definitely an advance feature, and nothing you
should use at a whim.
--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
[Back to original message]
|