I wanted to write a query which would list all the tables which has a specific column and check the indexes of those tables to see whether a particular column is added to the index key column.
I have built the query to list all the tables with a specific column: Select * From INFORMATION_SCHEMA.COLUMNS Where column_name = 'Date'
The result throws me about 100 tables.now i wanted to write a query to find if 'Date' column is added to their indexes as a index key column.
can someone help me out in this.
thanks in advance.