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 u create two Primary key for a table?
--Sivaa

Answer Posted / purushotham

S we can create its called composite key

ALTER TABLE TableName
ADD CONSTRAINT CONSTRAINT _Name
PRIMARY KEY (attribute1,attribute2)

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Any disadvantages in Dataset and in reflection ?

3260


Which method is used to perform all validation at the page level?

973


What is the difference between globalization and localization?

985


In your ASP.NET 2.0 web application you want to display an image that is selected from a collection of images. What approach will you use to implementing this?

995


How dataadapter.fill works?

1043


What is localhost in asp.net?

1025


What is Forms Authentication in ASP.NET?

1088


What is the latest version of asp.net?

1033


What are the advantages of Web API?

1115


What is diff. Between abstract class and an interface?

1065


What is the difference between file-based dependency and key-based dependency?

1075


How can we add an event handler for a ASP.NET function executed on MouseOver for a certain button.

1166


What is the difference between application state and session state in asp net?

1056


What are the cookies types in asp.net?

1015


What are the two properties that are common on every validation control?

1039