DECLARE @tableName VARCHAR(100),@alias varchar(100),@sql varchar(8000)
SET @tableName = 'T_PRD_PMPPBOMENTRY'
SET @alias = 't0e'
SELECT @sql = CONCAT('SELECT ',
STUFF((SELECT ',' + CHAR(10) +@alias+'.' + t0.name FROM SYSCOLUMNS t0 
WHERE ID = OBJECT_ID(@tableName)
ORDER BY t0.colid FOR XML PATH('')),1,1,''),CHAR(10),' FROM ' ,@tableName ,' ', @alias)

PRINT @sql