SQL: Select dynamic column name based on variable November 4, 2022 by Tarik EXEC ('SELECT ''value'' AS ' + @myDynamicColumn)