I have a huge table where there are close to 100 columns in the table. If I am writing a SQL statement in the query analyzer to return one row from that table, is there anyway to pivot the query so that the result is shown as rows and not columns, i.e.
rather than:
Col1 Col2 Col3 ....
I get:
Col1
Col2
Col3
...
Moreover, what will be the fastest way to get the result set ordered by column name?