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

What are horizontal and vertical scaling?

166


I have triggers,views,functions,stored Procedures for a table. When I am dropping that table which objects are deleted?

779


What is acid db?

671


Where does the copy job runs in the log shipping primary or secondary? : sql server database administration

766


How to compose an inquiry to demonstrate the points of interest of an understudy from students table whose name begins with k?

854






What is sql server english query?

744


How raid can influence database performance?

753


How you can change the database name in SQL SERVER?

859


What are system databases into sql server (2005/2008)?

761


What is a trigger what are the advantages of trigger?

694


What is mscorsvw.exe - process - microsoft .net framework ngen?

694


Define candidate key, alternate key, and composite key.

687


How to get the definition of a trigger back?

734


What happens if an integer is too big for int date type?

740


do you know how to configure db2 side of the application? : Sql server database administration

784