all groups > sql server programming > september 2004 >
You're in the

sql server programming

group:

sql performance


sql performance anand
9/22/2004 11:45:03 PM
sql server programming:
In the firm which i am working there is no dba as such
so we are facing a big problem with the performance with sql server

we have a table which contains lacs of records but when retrieving it takes
too much time

also ther are 4 to 5 indexes on that tables
again adding a new index is a great task


pls help me with this with how it's possible to make it out


RE: sql performance John Bell
9/23/2004 12:27:02 AM
Hi

You should look at the query execution plan, details about these can be
found in books online and in "Inside SQL Server 2000" by Kalen Delaney ISBN
0-7356-0998-5.

If you have your query in Query Analyser, use CTRL+L to display the
estimated execution plan or CTRL+K to display the used plan. This should
indicate where the query is being costly. It could be that the statistic are
out of date.

You may also want to look at using SQL Profiler to check for blocking and to
view what other activity is being processed. If you run Profiler for a period
of time, you may want to use it as input to the Index Tuning wizard to see
what suggestions it may give.

Overall performance tuning information can be found in the "SQL Server 2000
Performance Tuning Technical Reference Manual" ISBN 0-7356-1270-6

John
[quoted text, click to view]
Re: sql performance Uri Dimant
9/23/2004 10:32:44 AM
anand
You did not say what is the veresion of SQL Server you are using?
How big are these tables?
Had you looked at show_plan that query optimizer makes for the query?

Talk to the boss to hire a dba


[quoted text, click to view]

AddThis Social Bookmark Button