Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 Database Design and Application Architecture
 index in database

Author  Topic 

craker
Starting Member

5 Posts

Posted - 2010-01-12 : 13:27:30
Hi everybody. I have one question abouts indexs. I made one database about spanish cesus. Now, i need declare index because this database will made stadistics and it will search information.

For example ¿must i declare cluster index in each primary key?

Other question. Non-clustered index where make sense to declare?

Thanks very much

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-01-12 : 13:47:05
A primary key does not need to be clustered although often it is.

I put indexes on the tables to support the queries, so you would have to look at your queries to determine what's the best set of indexes without heavily indexing the tables.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2010-01-12 : 16:28:09
This is a just a general rule and has to be analysed for implemeting onto your criteria , but non - clustered index can be effective where the selectivity of your data is high, in other the more unique the better.


Jack Vamvas
--------------------
http://www.ITjobfeed.com
Go to Top of Page
   

- Advertisement -