I am looking for a query in sql server that will show me a list of all foreign key indexes in my database. I have a bunch of indexes within my database and some are on the foreign keys of the tables and I am looking to drop all my indexes except for those against the foreign keys and primary keys.
Share
Maybe a twist of the first answer could do it for ya?: