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
How do I find the sql server instance name?
Can I delete event logs?
What does set rowcount do?
What is the Difference Between Primary and Foreign Key?
What is dynamic cursor in SQL SERVER?
How does clustered and non clustered index work?
How do you delete duplicate records in sql server?
What is update locks?
Explain the types of indexes.
Can we store videos inside the sql server table?
What are trace flags and mention a few common trace flags used with sql server?
Why is sql server log file full?
What is scalar user-defined function?
What is a livelock?
What are translations and its use? : sql server analysis services, ssas