You require to use EXEC(...)
DECLARE @col varchar(10)
SET @col = 'UR_COLUMN'
EXEC ( 'SELECT ' + @col + ' FROM FOOBAR' )
Alternatively,
DECLARE @sql varchar(50), @col varchar(10)
SET @col = 'UR_COLUMN'
SET @sql = 'SELECT ' + @col + ' FROM FOOBAR'
EXEC ( @sql )
Hope this helps you...
IF U DON'T SEEK PERFECTION, U CAN NEVER REACH EXCELLENCE!!!
SD