Format Event Text for CSV Reports
/* Remove newline and commas from result */ SELECT TOP 10 REPLACE(REPLACE(REPLACE(CAST(ct_note.text AS VARCHAR(MAX)), ',', ' '), CHAR(13), ' '), CHAR(10), ' ') FROM ct_note WITH (NOLOCK)