We have deployed SQL Server 2012 Enterprise and we have performance issues:
- same data (backuped from our SQL Server 2005 Enterprise and restored on 2012)
- test script of 3200 sql SELECT statements
We do tests using Management Studio:
- results as plain text
- results in a file
On same computer:
- 2005 : 15 sec, 2012 : 2 min
- 2005 : 14 sec, 2012 : 30 sec
Even with a more powerful computer, 2012 is still slower than 2005.
What can be wrong? The way we installed SQL Server 2012 and default parameters? The way we restored the backup? What can we do?
My first thought when I see variations like that are to ensure that you have regenerated statistics for all of your tables. There are many scripts on the web for doing this and lots of discussion about whether to use the built-in sprocs, whether to do fullscan etc. Here is one quick and dirty script through that I would run before doing comparisons.