I have the following query inside a larger Select statement in SQL Server:
CONVERT(NVARCHAR(2000),stuff((SELECT '; ' + IsNull(D2.SelectedComments,'')
FROM #StudentDetails D2
WHERE D2.STUD_PK = A.STUD_PK AND D2.CourseNo = A.CourseNo
AND D2.Section = A.Section
FOR XML PATH('')),1,2,'')) AS SelectedComments,
This column is generating some strange symbols after certain entries such as This approach is satisfactory .
. I don't understand where the .
is coming from. I tried doing SELECT SelectedComments FROM #StudentDetails
right before this and I don't see the .
. Can anyone tell where it could be coming from?