Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 ORDER BY ASC or DESC

Author  Topic 

KnooKie
Aged Yak Warrior

623 Posts

Posted - 2001-01-30 : 10:16:30
How can i order by ASC or DESC based on a variable that is passed ?

The SP i'm writing takes in a parameter which determines which column/field to ORDER BY but inconjunction with this how can i also take in a variable and determine ASC or DESC ??

many thanks

   

- Advertisement -