dbTalk Databases Forums  

SQL queries are slow in SQL Server 2005 when compared with SQL Server 2000

microsoft.public.sqlserver.clustering microsoft.public.sqlserver.clustering


Discuss SQL queries are slow in SQL Server 2005 when compared with SQL Server 2000 in the microsoft.public.sqlserver.clustering forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
DPM
 
Posts: n/a

Default SQL queries are slow in SQL Server 2005 when compared with SQL Server 2000 - 04-24-2008 , 08:36 AM






Hi,



I have installed SQL2000 and SQL2005 on the same computer accessing the same
DB



When run the following simple queries the performance is as follows

Could some one please advice on how improve the performance on these queries
to run on SQL2005 ?

Are there any settings to be done in SQL2005 ?



SELECT Int_Key FROM fDocHst

Records 20422

SQL2000 - Uses an Index scan, reads 30, avg. dur 63

SQL2005 - Uses an Index scan, reads 30, avg. dur 406



SELECT Int_Key, DocumentNo, Sts, Rev, Title, Category, IntApprvd,
AvlDwgFmts, IntAdr, Type

FROM fDocHst

Records 20422



SQL2000 - Uses a Clustered Index scan, reads 2342, avg. dur 700

SQL2005 - Uses a Clustered Index scan, reads 2342, avg. dur 1261



Reply With Quote
  #2  
Old   
Uri Dimant
 
Posts: n/a

Default Re: SQL queries are slow in SQL Server 2005 when compared with SQL Server 2000 - 04-24-2008 , 11:05 AM






DPM
Did you update staistics after upgrading? Also take a look at execution
plans it might be changed as sql server engine is changed meaning the
optomizer is much smarter to create an more efficient execution plan



"DPM" <aa (AT) bb (DOT) cc> wrote

Quote:
Hi,



I have installed SQL2000 and SQL2005 on the same computer accessing the
same DB



When run the following simple queries the performance is as follows

Could some one please advice on how improve the performance on these
queries to run on SQL2005 ?

Are there any settings to be done in SQL2005 ?



SELECT Int_Key FROM fDocHst

Records 20422

SQL2000 - Uses an Index scan, reads 30, avg. dur 63

SQL2005 - Uses an Index scan, reads 30, avg. dur 406



SELECT Int_Key, DocumentNo, Sts, Rev, Title, Category, IntApprvd,
AvlDwgFmts, IntAdr, Type

FROM fDocHst

Records 20422



SQL2000 - Uses a Clustered Index scan, reads 2342, avg. dur 700

SQL2005 - Uses a Clustered Index scan, reads 2342, avg. dur 1261





Reply With Quote
  #3  
Old   
Uri Dimant
 
Posts: n/a

Default Re: SQL queries are slow in SQL Server 2005 when compared with SQL Server 2000 - 04-24-2008 , 11:05 AM



DPM
Did you update staistics after upgrading? Also take a look at execution
plans it might be changed as sql server engine is changed meaning the
optomizer is much smarter to create an more efficient execution plan



"DPM" <aa (AT) bb (DOT) cc> wrote

Quote:
Hi,



I have installed SQL2000 and SQL2005 on the same computer accessing the
same DB



When run the following simple queries the performance is as follows

Could some one please advice on how improve the performance on these
queries to run on SQL2005 ?

Are there any settings to be done in SQL2005 ?



SELECT Int_Key FROM fDocHst

Records 20422

SQL2000 - Uses an Index scan, reads 30, avg. dur 63

SQL2005 - Uses an Index scan, reads 30, avg. dur 406



SELECT Int_Key, DocumentNo, Sts, Rev, Title, Category, IntApprvd,
AvlDwgFmts, IntAdr, Type

FROM fDocHst

Records 20422



SQL2000 - Uses a Clustered Index scan, reads 2342, avg. dur 700

SQL2005 - Uses a Clustered Index scan, reads 2342, avg. dur 1261





Reply With Quote
  #4  
Old   
Uri Dimant
 
Posts: n/a

Default Re: SQL queries are slow in SQL Server 2005 when compared with SQL Server 2000 - 04-24-2008 , 11:05 AM



DPM
Did you update staistics after upgrading? Also take a look at execution
plans it might be changed as sql server engine is changed meaning the
optomizer is much smarter to create an more efficient execution plan



"DPM" <aa (AT) bb (DOT) cc> wrote

Quote:
Hi,



I have installed SQL2000 and SQL2005 on the same computer accessing the
same DB



When run the following simple queries the performance is as follows

Could some one please advice on how improve the performance on these
queries to run on SQL2005 ?

Are there any settings to be done in SQL2005 ?



SELECT Int_Key FROM fDocHst

Records 20422

SQL2000 - Uses an Index scan, reads 30, avg. dur 63

SQL2005 - Uses an Index scan, reads 30, avg. dur 406



SELECT Int_Key, DocumentNo, Sts, Rev, Title, Category, IntApprvd,
AvlDwgFmts, IntAdr, Type

FROM fDocHst

Records 20422



SQL2000 - Uses a Clustered Index scan, reads 2342, avg. dur 700

SQL2005 - Uses a Clustered Index scan, reads 2342, avg. dur 1261





Reply With Quote
  #5  
Old   
Uri Dimant
 
Posts: n/a

Default Re: SQL queries are slow in SQL Server 2005 when compared with SQL Server 2000 - 04-24-2008 , 11:05 AM



DPM
Did you update staistics after upgrading? Also take a look at execution
plans it might be changed as sql server engine is changed meaning the
optomizer is much smarter to create an more efficient execution plan



"DPM" <aa (AT) bb (DOT) cc> wrote

Quote:
Hi,



I have installed SQL2000 and SQL2005 on the same computer accessing the
same DB



When run the following simple queries the performance is as follows

Could some one please advice on how improve the performance on these
queries to run on SQL2005 ?

Are there any settings to be done in SQL2005 ?



SELECT Int_Key FROM fDocHst

Records 20422

SQL2000 - Uses an Index scan, reads 30, avg. dur 63

SQL2005 - Uses an Index scan, reads 30, avg. dur 406



SELECT Int_Key, DocumentNo, Sts, Rev, Title, Category, IntApprvd,
AvlDwgFmts, IntAdr, Type

FROM fDocHst

Records 20422



SQL2000 - Uses a Clustered Index scan, reads 2342, avg. dur 700

SQL2005 - Uses a Clustered Index scan, reads 2342, avg. dur 1261





Reply With Quote
  #6  
Old   
Uri Dimant
 
Posts: n/a

Default Re: SQL queries are slow in SQL Server 2005 when compared with SQL Server 2000 - 04-24-2008 , 11:05 AM



DPM
Did you update staistics after upgrading? Also take a look at execution
plans it might be changed as sql server engine is changed meaning the
optomizer is much smarter to create an more efficient execution plan



"DPM" <aa (AT) bb (DOT) cc> wrote

Quote:
Hi,



I have installed SQL2000 and SQL2005 on the same computer accessing the
same DB



When run the following simple queries the performance is as follows

Could some one please advice on how improve the performance on these
queries to run on SQL2005 ?

Are there any settings to be done in SQL2005 ?



SELECT Int_Key FROM fDocHst

Records 20422

SQL2000 - Uses an Index scan, reads 30, avg. dur 63

SQL2005 - Uses an Index scan, reads 30, avg. dur 406



SELECT Int_Key, DocumentNo, Sts, Rev, Title, Category, IntApprvd,
AvlDwgFmts, IntAdr, Type

FROM fDocHst

Records 20422



SQL2000 - Uses a Clustered Index scan, reads 2342, avg. dur 700

SQL2005 - Uses a Clustered Index scan, reads 2342, avg. dur 1261





Reply With Quote
  #7  
Old   
Uri Dimant
 
Posts: n/a

Default Re: SQL queries are slow in SQL Server 2005 when compared with SQL Server 2000 - 04-24-2008 , 11:05 AM



DPM
Did you update staistics after upgrading? Also take a look at execution
plans it might be changed as sql server engine is changed meaning the
optomizer is much smarter to create an more efficient execution plan



"DPM" <aa (AT) bb (DOT) cc> wrote

Quote:
Hi,



I have installed SQL2000 and SQL2005 on the same computer accessing the
same DB



When run the following simple queries the performance is as follows

Could some one please advice on how improve the performance on these
queries to run on SQL2005 ?

Are there any settings to be done in SQL2005 ?



SELECT Int_Key FROM fDocHst

Records 20422

SQL2000 - Uses an Index scan, reads 30, avg. dur 63

SQL2005 - Uses an Index scan, reads 30, avg. dur 406



SELECT Int_Key, DocumentNo, Sts, Rev, Title, Category, IntApprvd,
AvlDwgFmts, IntAdr, Type

FROM fDocHst

Records 20422



SQL2000 - Uses a Clustered Index scan, reads 2342, avg. dur 700

SQL2005 - Uses a Clustered Index scan, reads 2342, avg. dur 1261





Reply With Quote
  #8  
Old   
Uri Dimant
 
Posts: n/a

Default Re: SQL queries are slow in SQL Server 2005 when compared with SQL Server 2000 - 04-24-2008 , 11:05 AM



DPM
Did you update staistics after upgrading? Also take a look at execution
plans it might be changed as sql server engine is changed meaning the
optomizer is much smarter to create an more efficient execution plan



"DPM" <aa (AT) bb (DOT) cc> wrote

Quote:
Hi,



I have installed SQL2000 and SQL2005 on the same computer accessing the
same DB



When run the following simple queries the performance is as follows

Could some one please advice on how improve the performance on these
queries to run on SQL2005 ?

Are there any settings to be done in SQL2005 ?



SELECT Int_Key FROM fDocHst

Records 20422

SQL2000 - Uses an Index scan, reads 30, avg. dur 63

SQL2005 - Uses an Index scan, reads 30, avg. dur 406



SELECT Int_Key, DocumentNo, Sts, Rev, Title, Category, IntApprvd,
AvlDwgFmts, IntAdr, Type

FROM fDocHst

Records 20422



SQL2000 - Uses a Clustered Index scan, reads 2342, avg. dur 700

SQL2005 - Uses a Clustered Index scan, reads 2342, avg. dur 1261





Reply With Quote
  #9  
Old   
Uri Dimant
 
Posts: n/a

Default Re: SQL queries are slow in SQL Server 2005 when compared with SQL Server 2000 - 04-24-2008 , 11:05 AM



DPM
Did you update staistics after upgrading? Also take a look at execution
plans it might be changed as sql server engine is changed meaning the
optomizer is much smarter to create an more efficient execution plan



"DPM" <aa (AT) bb (DOT) cc> wrote

Quote:
Hi,



I have installed SQL2000 and SQL2005 on the same computer accessing the
same DB



When run the following simple queries the performance is as follows

Could some one please advice on how improve the performance on these
queries to run on SQL2005 ?

Are there any settings to be done in SQL2005 ?



SELECT Int_Key FROM fDocHst

Records 20422

SQL2000 - Uses an Index scan, reads 30, avg. dur 63

SQL2005 - Uses an Index scan, reads 30, avg. dur 406



SELECT Int_Key, DocumentNo, Sts, Rev, Title, Category, IntApprvd,
AvlDwgFmts, IntAdr, Type

FROM fDocHst

Records 20422



SQL2000 - Uses a Clustered Index scan, reads 2342, avg. dur 700

SQL2005 - Uses a Clustered Index scan, reads 2342, avg. dur 1261





Reply With Quote
  #10  
Old   
Uri Dimant
 
Posts: n/a

Default Re: SQL queries are slow in SQL Server 2005 when compared with SQL Server 2000 - 04-24-2008 , 11:05 AM



DPM
Did you update staistics after upgrading? Also take a look at execution
plans it might be changed as sql server engine is changed meaning the
optomizer is much smarter to create an more efficient execution plan



"DPM" <aa (AT) bb (DOT) cc> wrote

Quote:
Hi,



I have installed SQL2000 and SQL2005 on the same computer accessing the
same DB



When run the following simple queries the performance is as follows

Could some one please advice on how improve the performance on these
queries to run on SQL2005 ?

Are there any settings to be done in SQL2005 ?



SELECT Int_Key FROM fDocHst

Records 20422

SQL2000 - Uses an Index scan, reads 30, avg. dur 63

SQL2005 - Uses an Index scan, reads 30, avg. dur 406



SELECT Int_Key, DocumentNo, Sts, Rev, Title, Category, IntApprvd,
AvlDwgFmts, IntAdr, Type

FROM fDocHst

Records 20422



SQL2000 - Uses a Clustered Index scan, reads 2342, avg. dur 700

SQL2005 - Uses a Clustered Index scan, reads 2342, avg. dur 1261





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.