When do you create cluster and noncluster index?
Answers were Sorted based on User's Feedback
Answer / jerry joseph
A table can have 1 clustered index and 249 non-clustered indexes
indexes make sorting efficient
generally clustered index is ideal for the Primary Key
non-clustered indexes are ideal for columns which are used
in sorting (the columns in OrderBy)
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / monal
Indexes are mainly used for faster retrival of the data
from the table or view.
Primary key is best candidate for creation of clustered
key: reason all the values in Primary Key column would be
unique. Also you can create clustered index on foreign key
column of table which is used quite frequently in the join
condition and on the column which is used frequently in the
where clause of the table.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / krimish shah
Table can have only one clusert index. When we create
primary key on a table , it will generate a Cluster index
based on this primary key and physically sort and store the
data in order of clusterd index.
Non Cluster index are used to make search more effiecient
on table for given columns on which we have speicfied non
clustered index. Non cluster index have their own separate
storage.
| Is This Answer Correct ? | 3 Yes | 2 No |
Answer / naren
If there is primary key in table clustered index created by
default ,other wise non cluster index created .
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / nandkumar karlekar
Create the Clustred index when your data are divided into
some countable infinite limited sets which helps to retrive
the set of date from continus data pages from h/d.
because the clustred index stores data physically.
we can create only one clustred index for a table.
reaming searching field can be included in to the non
clust.. index
| Is This Answer Correct ? | 1 Yes | 0 No |
Difference between Triggers and Stored Procedure
23 Answers Claimat, HCL, Protech, Silgate,
How do I create a trace in sql server?
How many columns can we include on clustered index ?
Where to find ntwdblib.dll version 2000.80.194.0?
what is a schema in sql server 2005? : Sql server database administration
what is the Ticketing tool used in Wipro technologies at Bangalore...???
What is pivot and unpivot?
What is the difference between a primary key and a unique key? Are they the same?
What is mean by candidate key?
Tell me in brief how sql server enhances scalability of the database system?
Is it possible to run multiple publications and different type of publications from the same distribution database? : sql server replication
What is the difference between having clause and where clause in sql server?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)