Is it at all possible to use a variable in an Order By clause? I need a stored procedure that would select records in a table and order them by different columns depending on the @Orderby parameter passed. Obviously, the following syntax does not work:<br><br>Create...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.