DECLARE @cols NVARCHAR(MAX)
SELECT @cols = STUFF(( SELECT DISTINCT + ',' + MyData FROM (
SELECT +'Start: ' + Convert(Nvarchar,[StartDate],121) + ' End: ' + Convert(Nvarchar,[EndDate],121)
+' Deposit: ' + cast([Deposit_Sum] as Nvarchar) + ' Mode: ' + [Payment_Frequency] as [MyData]
FROM [TestDB].[dbo].[TblTempLog] where log_id = 7
)a
ORDER BY ',' + MyData
FOR XML PATH('')
), 1, 2, '') + ''
select @cols
The Result gives you comma separated all valued in one column.