Hi,
I have an SQL Stored Procedure to list the categories in my DB as follows:
Code:
CREATE Procedure CategoryList
AS
SELECT
ID,
Title,
Description,
MoreInfo
FROM
Categories
ORDER BY
ID ASC
GO
What I need to do is vary the way results are ordered by. Ideally I'd have :
ORDER BY
@OrcerBy ASC
but it doesn't work.
Any ideas?
Regards,
Minaki
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"
Please login or register to view this content. Registration is FREE | Please login or register to view this content. Registration is FREE
|