Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


can primery key be a non clustered index?

Answers were Sorted based on User's Feedback



can primery key be a non clustered index?..

Answer / 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

can primery key be a non clustered index?..

Answer / raju

No. If a table have primary key column automatically it is
clustered index. if a table have other than primary key
it have non clustered index. so answer of the question is it
doesn't support non clustered index in the primary key column

Is This Answer Correct ?    22 Yes 10 No

can primery key be a non clustered index?..

Answer / candu

No

Is This Answer Correct ?    14 Yes 8 No

can primery key be a non clustered index?..

Answer / hiral bhatt

No, its not possible to hving Primary key with Non Clusterd
Index, because whenever we have to make a column as Primary
Key, it will create a Clusterd Index on that Column
automatically, it is due to the concept of paging, thats
why we can have only 1 primay key and 1 clusterd index per
Table...Enjoy :-)

Is This Answer Correct ?    11 Yes 6 No

can primery key be a non clustered index?..

Answer / ivee

yes, it is possible

Is This Answer Correct ?    4 Yes 0 No

can primery key be a non clustered index?..

Answer / navneet sharma

Primary cannot be a non clustered index because when you
are creating primary key on a column then by defualt
cluster index will created on that column.

Is This Answer Correct ?    8 Yes 5 No

can primery key be a non clustered index?..

Answer / sql2000

Its Possible, run the below code and have a look...

begin transaction
create table test (col1 int, col2 int)

insert into test values (1, 1)
insert into test values (1, 2)
insert into test values (1, 3)
insert into test values (2, 1)
delete from test where col1 = 2

alter table test
alter column col2 int not null

alter table test
add
constraint [pk_col2] primary key nonclustered(col2) on
[primary]
rollback transaction

Is This Answer Correct ?    3 Yes 0 No

can primery key be a non clustered index?..

Answer / vinoth

Yes,Its Possible.Eg( Select Eid,Did,Ename from Employee)
.Create table with primary key column(Eid).This time
Primary key column ACT As a CLUSTERDE INDEX for Default.

Suppose User directly create Did COLUMN with CLUSTEREDINDEX
at this time Primary key column act as a NONCLUSTEREDINDEX.

Is This Answer Correct ?    2 Yes 0 No

can primery key be a non clustered index?..

Answer / praveen

No, its not possible to hving Primary key with Non Clusterd
Index, because whenever we have to make a column as Primary
Key, it will create a Clusterd Index on that Column
automatically, it is due to the concept of paging, thats
why we can have only 1 primay key and 1 clusterd index per
Table...Enjoy :-)

Is This Answer Correct ?    4 Yes 6 No

can primery key be a non clustered index?..

Answer / samar

Primary key is also known as clusterd index which is
physical structure .And noncluster index is logical
structure .

therefore Primary key cant be a nonclustered index. and
when we are creating primary key on a table system
understands it as creation of clustered index.

this is the reason one table can have one primary key

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More SQL Server Interview Questions

Which tcl commands are available on the sql server?

0 Answers  


What is temporary table in sql server? Why we use temp table?

0 Answers  


hi,i want t0 knom d syntax for a super key with an example

1 Answers  


If any stored procedure is encrypted, then can we see its definition in activity monitor?

0 Answers  


What are the different authentication modes in sql server? How can it be changed?

0 Answers  


How to test a dml trigger in ms sql server?

0 Answers  


What is system stored procedures?

0 Answers  


Explain the properties of sub-query in sql server?

0 Answers  


Explain the microsoft sql server delete command? : SQL Server Architecture

0 Answers  


Explain about protocol layer present in SQL server?

0 Answers  


What is the difference between composite index and covering index?

0 Answers  


what is the purpose of creating view is sql server 2000

13 Answers   Wipro,


Categories