I’m moving a database backup from SQL Server 2000 to SQL Server 2005.
The hardware they are running on is equivalent.
In light of that, shouldn’t the stored procedures, while running on SSQL2005, run at least as fast (if not faster)? The data is exactly the same. However, they run 5x slower.
I reindexed the database and reset its statistics after restoring it to SSQL2005.
Dumbfounded…..
FYI, when making the dump files, I made sure that they were checksummed and verified.
I created 2 separate backups and did this with 2 backups and got the same result.
There are a number of differences between SQL Server 2000 and 2005. So this is certainly not impossible.
Assuming the data and indexes are all the same, I would first look at the execution plans of a representative procedure – if they differ, then there is something which needs to be investigated there, and that could include parameter sniffing issues.
If all that pans out, then next you’ll probably need to dig into the file locations to see if the data and log files are set up differently in terms of drives and underlying RAID etc. Then on to performance counters etc.
Update:
try T switch 4199, http://msdn.microsoft.com/en-us/library/ms188396.aspx for available switches etc. Also make sure you ahve installed the latest cumulative update pack.