BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Information about index

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Stefan Deutschen
Guest





PostPosted: Wed Aug 13, 2003 8:40 am    Post subject: Information about index Reply with 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
Robert Cerny
Guest





PostPosted: Wed Aug 13, 2003 1:13 pm    Post subject: Re: Information about index Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.