Viewing post 1 (of 1 total)
you can put your query in a varchar variable like this:
declare @STR varchar(4000)
set @STR='select * from tbl order by ' + @orderByPhrase
and exexute
July 1, 2007 at 12:01 am
#716395