Can Somebody tell me the difference between Clustered & Non-
Clustered Index??

Answer Posted / anjan ghosh

when we create index then we assign a primary or unique
field , after insert of records , the results is
clustered--(field) order by
nonclustered--no order(logical order)

create table nonclusterindex(Emid int,data varchar(800))
create table clusterindex(Emid int,data varchar(800))

create unique nonclustered index nonclusterindex_emid on
nonclusterindex (Emid)

create unique clustered index clusterindex_emid on
clusterindex (Emid)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

You have a stored procedure, which execute a lengthy batch job. This stored procedure is called from a trigger you do not want to slow the data entry process you do not want trigger to wait for this batch job to finish before it completes itself what you can do to speed up the process?

653


What are basics of policy management?

608


What is the difference between functions and scalar functions?

574


Explain indexing and what are the advantages of it?

528


What is schemabinding a view?

529






What happens if date-only values are provided as date and time literals?

543


To which devices can a backup be created and where should these devices be located? : sql server management studio

567


What is extended stored procedures?

568


What is sql server profiler trace data file?

584


Create a dts package to produce a text file using the ‘update statistics’ command for the tables in a database with obsolete statistics.

529


How to create prepared statements using odbc_prepare()?

565


What are the advantages of partitioning?

642


What are points to remember while using the fillfactor argument?

530


Why use view instead of a table?

518


What are cursors in ms sql server?

595