I'm sorry, but I did not understand your answer.
I am writing a package that will create the sorting method seen from the front-end.
I have an xml package that runs a sql query and formats the results.
It will take request parameters from the query string and put them in a sql variables. i have the following query string: product.aspx?so rt=1
which is converted by a static list to the required columns to sort (in this case...
User Profile
Collapse
-
-
Dynamic ORDER BY
I am working on adding sorting functionality to an online store.
The query works fine when it has a hard coded ORDER BY, but not when the ORDER BY is a variable.
...Code:declare @CatID Int declare @PageSize Int declare @PageNumber Int declare @OrderBy VarChar declare @EntityName VarChar set @CatID = 3158 set @PageSize = 10 set @PageNumber = 1 set @OrderBy = 'p.SalePrice'
No activity results to display
Show More
Leave a comment: