Hi,
While saving stored procedure i get the following error:
Error 1008: The select item identified by the order by number 1 contains a variable as part of the expression identifying a column position.Variables are only allowed when ordering by an expression referencing a column name.
Actually Iam passing column name for the order by clause as a parameter to the stored procedure.
Please explain to me what it is all about.How it can be rectified.
Thankx.
While saving stored procedure i get the following error:
Error 1008: The select item identified by the order by number 1 contains a variable as part of the expression identifying a column position.Variables are only allowed when ordering by an expression referencing a column name.
Actually Iam passing column name for the order by clause as a parameter to the stored procedure.
Please explain to me what it is all about.How it can be rectified.
Thankx.