in my query i am using ORDER BY #variable#.
as you can guess, the ORDER BY is dynamic. The #variable# value is a string sent by the app user.
with out going into details as to why i am doing this in the way that i am doing (does that even make sense :| ), i want to be able to check if the value of the variable in the ORDER BY statement is a valid field name.
is there a SQL condition that i can use for this purpose?
as you can guess, the ORDER BY is dynamic. The #variable# value is a string sent by the app user.
with out going into details as to why i am doing this in the way that i am doing (does that even make sense :| ), i want to be able to check if the value of the variable in the ORDER BY statement is a valid field name.
is there a SQL condition that i can use for this purpose?