Re: Slow Execution Performance



Regarding the optimizer, is that an official information?

"Erland Sommarskog" <esquel@xxxxxxxxxxxxx> wrote in message
news:Xns99D4EEC7CD33Yazorman@xxxxxxxxxxxx
Ben (pillars4@xxxxxxxxxxxxx) writes:
a) Backuped our SQL Server 2000 database
b) Created an empty database in SQL Server 2005
c) Restored our SQL Server 2000 database to the empty SQL Server 2005
database

Not that it's a big deal, but step b was not needed. RESTORE will
create the database if it does not exist.

Below are the things that I have tried so far, which did not work:
1) Rebuilt all the indexes
2) Took out the "Refresh" lines that were not needed in the app code
3) Set the compatibility level from 80 to 90
4) Dropped the "dtproperties" system table, which are not being used
anymore in SQL Server 2005

Any ideas would be great! Thanks!

You will need to analyse the query plans for these slow queries to see
what is slow in them. If possible compare the query plans to what you had
in SQL 2000. Maybe you need to improve your indexing, maybe the queries
needs tweaking.

You can examine the query plan by running the query from Mgmt Studio
with Show Execution Plan enabled. You can also use Profiler and catpure
the Performance:Showplan XML event. This is particularly useful, if
it's difficult to extract the query from the application.

So why do these queries perform worse with SQL 2005? Well, an optimizer
is a guessing game. From statistics sampled about the data, the optimizer
makes an estimation what is the best query plan. Each new version of
SQL Server comes with new neat tricks in the optimizer, but there always
queries where these improvements backfire.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

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



.



Relevant Pages

  • Re: MS Access DAO -> ADO.NET Migration
    ... William Vaughn ... Microsoft MVP ... Hitchhiker's Guide to Visual Studio and SQL Server ... My migration app works building a SSCE database file with imported data ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Cluster will not fail over.
    ... > As far as the TCP/IP issue goes, you had to rebuild the cluster and were ... > able to restore the master database. ... > a cluster installation you'll have to revisit. ... >> This worked bringing up the sql server in minimal mode. ...
    (microsoft.public.sqlserver.clustering)
  • Re: Word 2003/Access2000/SQLSVR
    ... SQL server being where the data is held and this is accessed through a MS ... entire database and that may be say a record for Berkshire. ... "Peter Jamieson" wrote: ... replaced with the first record on the table in use. ...
    (microsoft.public.word.mailmerge.fields)
  • Re: MS Access DAO -> ADO.NET Migration
    ... full SQL Server and I see the logic you explained in a multi user ... allow two users to access the same database file Read/Write at any given ... The book was a pleasure to read after the gibberish that Microsoft 'puts ... Hitchhiker's Guide to Visual Studio and SQL Server ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: MS Access DAO -> ADO.NET Migration
    ... For that it is much harder to handle the incremental identifier, ... database but although they have the data, they are not connected at the same ... The book was a pleasure to read after the gibberish that Microsoft 'puts ... SQL Server Management Studio is nowhere to be found on my ...
    (microsoft.public.dotnet.framework.adonet)