I have to build an application that allows the end user to select what columns they want in their report.
For this I build a dynamic T-SQL stored procedure. However, there are up to 60 columns available that could potentially be selected.
I am worried that this will greatly harm the performance of the query. What are my options? Create indexes for each possible query is not really possible.
Would a columnstore index be beneficial?