I have just upgraded an instance to SQL 2005.
I have a script that runs through and does an index defrag if the index is fragmented over a certain level.
My script is gagging on the _dta indexes - these are created by the engine tuning wizard.
I cant do a straight drop as to drop an index you need a table reference, which of course these do not have. I know that I could also just script around them, but I would rather not as all these superfluous indexes are, well, untidy (a touch of the OCD maybe? ).
Does anyone have a script or know of a way of cleaning these off of the server?
Thanks
I have a script that runs through and does an index defrag if the index is fragmented over a certain level.
My script is gagging on the _dta indexes - these are created by the engine tuning wizard.
I cant do a straight drop as to drop an index you need a table reference, which of course these do not have. I know that I could also just script around them, but I would rather not as all these superfluous indexes are, well, untidy (a touch of the OCD maybe? ).
Does anyone have a script or know of a way of cleaning these off of the server?
Thanks