Re: Should I Index?

From: Wayne Snyder (wayne.nospam.snyder_at_mariner-usa.com)
Date: 06/03/04


Date: Thu, 3 Jun 2004 08:38:44 -0400

If these tables are intermediate tables which will be used frequently in
joins, (and they are larger than 10 pages, and sometimes the joins should
return fewer than 5% of the rows in the table.) then absolutely positively
index them.

-- 
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"John Bandettini" <anonymous@discussions.microsoft.com> wrote in message
news:FA88F208-6521-40A7-88D2-922FDCF7824E@microsoft.com...
> Keith
>
> You should create indexes if your application will use them. What I mean
is it is not useful to have indexes that are not used. Indexes are at their
most useful when you have queries that only bring back a small portion of
the data or a defined range of data.
>
> A good place to start is the index tuning wizard. Capture some data on the
application as it is being used. Use profiler to do this. Save the output
from profiler to a file. Then run the index tuning wizard, it should suggest
some suitable indexes based on the workload.
>
> These will get you started then it is just understanding your application,
to know if any more would be suitable.
>
> See following link for tips on using profiler
>
> http://www.sql-server-performance.com/sql_server_profiler_tips.asp
>
> Hope this helps
>
> John


Relevant Pages

  • Re: Problem altering table and adding a default
    ... SQL Server does not allow that - you can only add nullable ... > After you add a new column in Enterprise Manager, uncheck Allow Nulls, ... the ALTER TABLE statement above will pass to the SQL Server ... > 4) Start Profiler and perform a new trace. ...
    (microsoft.public.sqlserver.server)
  • Re: Running profiler on busy 8-cpu Sql Server
    ... with SQL Server. ... Not only does the Profiler GUI's screen need to ... Server & places it on queues that the Profiler GUI picks up. ... / data columns & filters you define in a profiler trace, ...
    (microsoft.public.sqlserver.server)
  • Re: Problem altering table and adding a default
    ... ALTER TABLE dbo.Test_tbl ADD Notnull_col1 charNOT NULL ... SQL Server does not allow that - you can only add nullable columns. ... After you add a new column in Enterprise Manager, uncheck Allow Nulls, bind the uder- ... Start Profiler and perform a new trace. ...
    (microsoft.public.sqlserver.server)
  • Re: stress by profiler ?
    ... Are you running the Profiler on the same machine as SQL Server? ... The response time of DB access is also good. ... -- very low Disk Read ...
    (microsoft.public.sqlserver.server)
  • RE: Change in Statistics
    ... I believe that the Index Tuning Wizard will provide you scripts for the ... one that you used to get the index recommendations in the first place. ... Troubleshoot Slow-Running Queries on SQL Server 7.0 or Later ... Microsoft SQL Server 7.0 and SQL Server 2000 Indexes ...
    (microsoft.public.sqlserver.programming)