In SQL Server 2000 – how can we find unused indexes, so that we can drop them.]
I have scripts for 2008 but don't know how to do it in SQL Server 2000.
Please help.
Regards
sql serversql-server-2000
In SQL Server 2000 – how can we find unused indexes, so that we can drop them.]
I have scripts for 2008 but don't know how to do it in SQL Server 2000.
Please help.
Regards
Best Answer
The only thing I can recommend is to put your 2000 database on a server with SQL Server 2005 or greater (a development or test server) installed, find the unused indexes with the help of the new DMVs and once you have a list of changes apply them back to the production SQL Server 2000 instance.
Please be aware that SQL Server 2000 is no longer supported and you should move your production processes, if possible, to a later version of SQL Server.
An example query in SQL Server 2012 using the sys.dm_db_index_usage_stats DMV: