Replacing user-defined aggregate function with SQL standard function STRING_AGG().
SQL Server is fine with the below code...
DECLARE @New_Line CHAR(1) =