Thank this author by sharing:
By Renu Mehta,
Not Selecting All Columns in select query
how to perform Custom calculations in Dynamic Column Groups
Creating a report from stored proc dataset where columns are dynamically created depending on custom...
I have 15 columns and I want to select info on one based on a parameter pased into the proc
As a member of SQLServerCentral, you get free access to loads of fresh content: thousands
of articles and SQL scripts, a library of free eBooks, a weekly database news roundup,
a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals
that makes it such a success.