I have string variable like this
declare @string nvarchar(200)
set @string = N'table1,table2,table3'
and I want to change comma on new line to have every table in new line.
I'm trying something like this but it doesn't work
select replace(@string,',',char(13))