 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Stefan Deutschen Guest
|
Posted: Wed Aug 13, 2003 8:40 am Post subject: Information about index |
|
|
Hi folks...
Can someone post a link where i can find information about indizes in MSSQL
2000? how to plan them, which one is best for which kind of table or linked
tables...
(I tried the german MS Knowledge Base but couldnt exactly find what i
need... Most of the info was about optimization, but im still in the
planning phase)
Thx a lot
|
|
| Back to top |
|
 |
Robert Cerny Guest
|
Posted: Wed Aug 13, 2003 1:13 pm Post subject: Re: Information about index |
|
|
It's pretty simple.
1. each table should have a primary key
2. foreign keys create indexes
3. create index for fields that you need very fast search
4. view execution plan for query, if it creates temp table or does a
sequential scan, key field in query is good candidate for index.
5. do not create too many indexes, as it slows down updates.
Also, see optimization tips in BOL.
--
Robert Cerny
http://codecentral.borland.com/codecentral/ccWeb.exe/author?authorid=18355
"Stefan Deutschen" <sdeutschen (AT) fixemer (DOT) de> wrote
| Quote: | Hi folks...
Can someone post a link where i can find information about indizes in
MSSQL
2000? how to plan them, which one is best for which kind of table or
linked
tables...
(I tried the german MS Knowledge Base but couldnt exactly find what i
need... Most of the info was about optimization, but im still in the
planning phase)
Thx a lot
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|