Groups | Blog | Home
all groups > sql server (alternate) > june 2005 >

sql server (alternate) : best way to optimize certain tables


Fernand St-Georges
6/28/2005 3:23:45 PM
I have a SqlServer 2000 running 7 databases. One in particular is slower
than the rest specificaly on certain tables. It seems the problem comes
from the volume of data, but I don't think 3000 lines can be considered a
big table. I have indexes on the principal keys, but it did not help.

thank you

Erland Sommarskog
6/28/2005 9:14:50 PM
Fernand St-Georges (fernand.st-georges@videotron.ca) writes:
[quoted text, click to view]

3000 rows is indeed a fairly small table. But a weird enough query and
make even that table slow to work with.

You need to find out more of what is going on. One way is to run Profiler,
and capture the SP:StmtCompleted, SQL:StatementCompleted, SP:Completed
and RPC:Completed events with some good filter on Duration, so you can
locate the slow queries. If there are any slow queries. The problem could
be blocking as well.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server SP3 at
--CELKO--
6/29/2005 4:56:15 PM
Please post DDL, so that people do not have to guess what the keys,
constraints, Declarative Referential Integrity, data types, etc. in
your schema are. Sample data is also a good idea, along with clear
specifications. It is very hard to debug code when you do not let us
see it.
AddThis Social Bookmark Button