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

Define transparent caching with aop?

546


How do I force the dispose method to be called automatically, as clients can forget to call dispose method?

519


Why do we need master page in asp.net?

540


What are the session management techniques asp net?

575


Which class is used to send an email message from an ASP.NET Web page?

550






Fetch one page value to another page without using state-managment ?

539


What is State Management in .Net and how many ways are there to maintain a state in .Net? What is view state?

590


What is event bubbling?

616


What can you do with asp.net?

519


Explain what is an abstract class?

569


What are the advantages and disadvantages of session?

674


Do you know about caching with the datasource controls?

490


Do I need to have the latest version of windows media player installed?

523


How can we register exception filter from the action?

670


What are the session variables?

522