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

Which are the olap features?

737


What is the impact on other user sessions when creating indexes?

709


Differentiate between a primary key and a unique key.

791


Explain different backup plans?

700


How many files can a database contain in sql server?how many types of data files exists in sql server? How many of those files can exist for a single database?

838






How can I change procedure name in sql server?

695


How to concatenate two strings in SQL Server.

781


How exceptions can be handled in sql server programming?

705


Can you pass expressions to stored procedure parameters?

702


Is a null value equal to anything? Can a space in a column be considered a null value? Why or why not?

803


What are scalar functions?

664


What is difference between cte and view?

686


 Explain what is sql override for a source taLle in a mapping?

747


wat wil hapn if we give the both read and deny read permission to user?

1857


How to search for a string in all stored procedure in sql server?

736