Can we create clustered index on non primary key column

Answer Posted / pavan kumar

YES, We can create a clustered index on a non-primary
column. Check the folowing queries...

CREATE TABLE EMPLOYEES
(
empid int NOT NULL CONSTRAINT ix_pkEMPLOYEES PRIMARY KEY
NONCLUSTERED
, name varchar(25) NOT NULL
, age tinyint NOT NULL
)

CREATE CLUSTERED INDEX ixcEMPLOYEES ON EMPLOYEES (name)

Is This Answer Correct ?    57 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

You have a table with close to 100 million records recently, a huge amount of this data was updated now, various queries against this table have slowed down considerably what is the quickest option to remedy the situation?

702


What is the use of RDBMS?

788


you have separate development and production systems you want to move a copy of a development database into production to do this, you do a backup on the development system and restore to the production system after a few minutes, you begin getting calls from several customers saying that they are denied access to the system why? : Sql server administration

748


Can I save my report as html, excel or word? : sql server management studio

752


What is co-related sub query?

763


How many databases can we create in a single server?

199


Do you know what is user defined datatypes and when you should go for them?

750


What is failover clustering overview?

795


What is the difference between upgrade and migration in sql server?

792


What are logical database components? : SQL Server Architecture

694


How to provide login information for a new odbc dsn?

716


What happens if null values are involved in arithmetic operations?

798


What is the difference between inner join and equi join?

731


Explain the disadvantages of cursors?

793


What is microsoft sql server?

723