C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » SQL Server »

interview questin...


Posted Date: 30 Nov 2007      Posted By: Lakshmankumar M      Member Level: Gold     Points: 2   Responses: 3



is we fist we create clusterindex after that we create primary key then waht will happen?is ther any error aomes




Responses

Author: vipinpaliwal    30 Nov 2007Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

its give erros. because clusterindex also called primary key


Author: Pandian S    30 Nov 2007Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

Hi,

YES WE CAN CREATE PRIMARY KEY.

Definition :
---------------

- We can create only one CLUSTERED INDEX in a Table.
- One CLUSTERED INDEX will be created When You create CLUSTERED INDEX On a Table.
- We can create PRIMARY KEY On thet same column.
(BUT THE PRIMARY KEY WILL BE CREATED AS A NON-CLUSTERED)

Regards



Author: Venkatesh Murali    17 Dec 2007Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

We can only create PRIMARY KEY On thet same column


Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : what is locking in sql serevr?whatis this use?
Previous : How to store result of a query in a variable
Return to Discussion Forum
Post New Message
Category: SQL Server

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use