Does anyone know if there's any way you can determine if a column in a table is used or not?I have a table with 926 columns (I didn't build this), of which about 850+ of them appear to have NULL values for every record.Is there a way to determine which columns are 100% unused without actually querying each table and column to see if there's a value or not in any given row?Ex:SELECT COUNT(1) from [dbo].[TableWithManyColumns] WHERE [Column] IS NOT NULLWe're trying to see if we can remove all the unused columns in this table (and dozens of other similar ones)Thanks in advance!
↧