SQL Server Performance Forum – Threads Archive
change index from clustered to nonclustered
can someone reply with the proper syntax in t-sql to change a clustered index to a nonclustered. i’ve tried the following command but returns an error.<br /><br />create nonclustered index <index_name> on <table_name>(<column_name><img src=’/community/emoticons/emotion-5.gif’ alt=’
if you want to use the same name, its better to drop the existing clustered index first.
drop index <table>.<indexname>
***********************
Dinakar Nethi
SQL Server MVP
***********************
http://weblogs.sqlteam.com/dinakar/
I don’t think you can covert the clustered index to non-clustered index using DROP_EXISTING option… You need to drop and recreate the index…
MohammedU.
Moderator
SQL-Server-Performance.com All postings are provided “AS IS†with no warranties for accuracy.
that is what i was i thought. thanks!
]]>