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?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is “asynchronous” communication in sql server service broker?

961


What are the common performance issues in sql server?

868


What new changes are being made in SQL Server?

1098


Do you have any idea about the tcl commands?

910


How do I trace a query in sql server?

900


How to sort the query output with order by clauses in ms sql server?

983


What is a dbms wizard?

968


What is auditing in sql server?

880


What is RMS migrations?

2085


Who is the owner of a schema in ms sql server?

1008


What are partitioned views and distributed partitioned views?

977


Can anyone tell that the extra features are there in SQL SERVER 2008 that are not available in previous versions .

1902


How can we remove orphan records from a table?

931


Do you think BCNF is better than 2NF & 3NF? Why?

1226


What is efficiency data?

904