I would like to dynamically change the name of my clustered indexes on my table, lets say its called (MY_TABLE), so that the Clustered Index created takes the form: PK_MY_TABLE. The problem is that to begin with the indexes have the form: "PK_MY_TABLE_E86234JKFDS" etc. Is there a way to reference such an index in an SQL Statement to reference the Clustered Index of a Table despite the fact that the "_E86234JKFDS" part is unique?
I am looking to create a query that will always work and since index names are always unique that seems to be difficult. Maybe there is a way to reference clustered index of table since there is only one?
Thanks