Hi,
I have migrated a database from 2000 to 2005, updated the statistic and rebuild the index.
When I run the following query
"select top 500 * from myview order by name", it is extremely slower in 2005 than 2000. The myview simply does an inner join with 2 table. The name is varchar(50). Strangely when I remove the top 500, the time to run the query on 2000 and 2005 quite similar.
Does anyone have any idea why this is occurring, or any input, this is really puzzling me???
Thanks
Software/Hardware used:
ASKED:
April 29, 2009 9:15 AM
UPDATED:
May 2, 2009 8:46 PM
I am using SP 3, could it be the number of processors??????
The number of processors would only effect things if you were using more than one CPU to perform the query.
The first place to start will be the execution plan of the query.