Dynamic ORDER BY in SQL Server

Posted by BrunoLM on Stack Overflow See other posts from Stack Overflow or by BrunoLM
Published on 2010-05-19T12:50:58Z Indexed on 2010/05/19 13:00 UTC
Read the original article Hit count: 198

Filed under:

I saw some topics about this, but the problem is that the solutions required a "switch case"... Like this

I have a table with a lot of columns, is there a way to do a dynamic sort without the switch?

© Stack Overflow or respective owner

Related posts about sql-server