Hi all,When I use ECHO command the file insert a line at the end of file, but I do not want a line at end of file.See:I want to show the result after concatenating in just one line/row--Create Text FileDECLARE @list VARCHAR(1000) = 'AROUT, ANTON, TOMSP', @command VARCHAR(1000);SET @command = 'echo ' + @list + '>>c:\test.txt';EXECUTE xp_cmdshell 'del c:\test.txt';EXECUTE xp_cmdshell @commandGO--Createing Temporary TableIF OBJECT_ID('tempdb.dbo.#Temp', 'U') IS NOT NULL DROP TABLE #TempCREATE TABLE #Temp(list VARCHAR(1000));GO--Bulk InsertingBULK INSERT #Temp FROM 'c:\test.txt'WITH(ROWTERMINATOR = ', ');GO--Assignment DECLARE @list VARCHAR(1000) = ''SELECT @list = @list + list + ', ' FROM #Temp ORDER BY list ASC select @list/*------------------------ANTON, AROUT, TOMSP, */But I want see the result similar this:-----------------------ANTON, AROUT, TOMSP