Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 index

Author  Topic 

pramod21
Yak Posting Veteran

64 Posts

Posted - 2012-08-27 : 05:36:18
Hi,
what will happend if i'm crating a clustered index on a column which alredy has nonclustered index???

will it affect performance??

thnx..

nigelrivett
Master Smack Fu Yak Hacker

3385 Posts

Posted - 2012-08-27 : 05:39:36
It will reorder the data pages and recreate the non-clustered index.
The non-clustered index will now include the clustered index columns (already there so no extra space) instead of the row reference.
You should find the non-clustered index is smaller and hence faster to access.

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -