Mehernosh (8/13/2013)
Fair point HextallFanForLife.
You can try the following if you want the Schema name to be included too.
DECLARE @mStrColumns VARCHAR(8000) , @mStrTable VARCHAR(100)
SET @mStrTable ='TABLE_NAME'
--
SELECT @mStrColumns = COALESCE(@mStrColumns + ',...