SQL Server Set Spaltenname als Variable
declare @a as varchar;
set @a='TEST'
exec ('select ' + @a + ' from x')
islam sissaoui
declare @a as varchar;
set @a='TEST'
exec ('select ' + @a + ' from x')