Geeks Talk

Prepare for your Next Interview




Issue

This is a discussion on Issue within the SQL Server forums, part of the Databases category; If we create a primary key then automatically it creates an unique clusterd index, but for any table there is only one clusterd index is allowed, If i want to ...


Go Back   Geeks Talk > Databases > SQL Server

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-19-2008
Junior Member
 
Join Date: Apr 2008
Location: Hyderabad
Posts: 24
Thanks: 1
Thanked 4 Times in 2 Posts
nageshkota is on a distinguished road
Issue

If we create a primary key then automatically it creates an unique clusterd index, but for any table there is only one clusterd index is allowed, If i want to create an uniue clusterd index on other column can i do it? If how?
Reply With Quote
The Following 2 Users Say Thank You to nageshkota For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 05-20-2008
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,365
Thanks: 7
Thanked 123 Times in 111 Posts
debasisdas will become famous soon enoughdebasisdas will become famous soon enough
Re: Issue

please find a related discussion here.
Reply With Quote
  #3 (permalink)  
Old 07-24-2008
Junior Member
 
Join Date: Jul 2008
Location: Hyderabad
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
mobinsk is on a distinguished road
Re: Issue

Hi,
As you mentioned above it is not possible to create more than one clustered index or unique clustered index.
So,
For creating new one drop the existing one.
Reply With Quote
  #4 (permalink)  
Old 08-11-2008
Junior Member
 
Join Date: Apr 2008
Location: Hyderabad
Posts: 24
Thanks: 1
Thanked 4 Times in 2 Posts
nageshkota is on a distinguished road
Re: Issue

Hi mobin,
It is possible to create more than one clustred index on a table.
so You answer is wrong...
Reply With Quote
  #5 (permalink)  
Old 09-02-2008
Junior Member
 
Join Date: Feb 2008
Location: chennai
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
ckarthick is on a distinguished road
Re: Issue

table can have only one clustered index, and it can have more than one non-clustered index
Reply With Quote
  #6 (permalink)  
Old 4 Weeks Ago
Junior Member
 
Join Date: Sep 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Amitaqa is on a distinguished road
Re: Issue

one table can have one clustered index and 249 non clustered index.
Reply With Quote
Reply

  Geeks Talk > Databases > SQL Server


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Testing issue sakshi_2801 Testing Issues 3 01-21-2008 01:33 AM
Date range issue mallieka Java 1 10-24-2007 01:07 AM
MATLAB Issue kamanianil PeopleSoft 1 10-05-2007 09:52 AM
security issue in UNIX gummadi Unix/Linux 1 09-25-2007 07:19 AM
ADF table issue.. psuresh1982 Oracle 1 07-19-2007 03:04 AM


All times are GMT -4. The time now is 12:18 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved