can primery key be a non clustered index?

Answer Posted / devendra sharma

Yes it is possible that a primary key can be non clustered

create table abc(eid int PRIMARY KEY
NONCLUSTERED,ename varchar(50),vid int)

create clustered index abc_clustered on abc (vid)


now if you will check the index on eid cloumne it will be
unique and vid will have a clustered index.

Give it a try if you don't belive......

Is This Answer Correct ?    18 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the critical issues you have resloved in your company

1633


How can we call UDF(User Define Function) using C# code in ASP.net ?

6124


What is ms sql server service broker?

584


What is tablix?

123


How do you know if sql server is running on your local system?

628






How we can compare two database data?

605


Why people hate cursor?

809


What is the difference between grant and with grant while giving permissions to the user?

612


what is a schema in sql server 2005? : Sql server database administration

601


How to fine-tune reports?

181


What is efficiency data?

615


How to stop log file growing too big?

657


What objects does the fn_my_permissions function reports on? : sql server security

643


When cursors are useful?

653


What is db stored procedure?

541