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

Differentiate between a local and a global temporary table?

946


Why would you call update statistics?

1004


What is a document index?

1018


Define right outer join in sql server joins?

1032


What is primary key and example?

936


In what version of sql server were synonyms released?

934


Explain four layers of abstraction microsoft architectured?

147


How to enter unicode character string literals in ms sql server?

1057


Explain indexing and what are the advantages of it?

1011


Can you explain the disadvantages/limitation of the cursor?

974


what is a correlated sub-query? : Sql server database administration

931


What is the purpose of a table?

957


What is data source in connection string?

898


What is sql injection? How to protect against sql injection attack?

980


What is the process of indexing?

998