I have a large table in SQL Server 2008 R2 and it contains many columns and millions of rows.
There are columns for which all rows have identical values.
For example
col1 col2 col3 col4 col5.....
a b c 1 null
a d e 1 null
a f g 1 null
a h I 1 null
I want to remove those columns such as col1, col4, col5 and more columns like those.
I do know drop column, I guess I just don't know how to select multiple columns in these case
How could I proceed in this case ?
Thanks very much