SQL Comma Delimit Problem <p>I have a small problem. I am getting this error, and I would appreciate if anyone could help me out! All I am trying to do is a comma delimited list.</p> <pre><code>SET NOCOUNT ON; DECLARE @TypeID Varchar(250) SELECT @TypeID = COALESCE(@TypeID +',' ,'') + TypeID FROM Related RETURN @TypeID </code></pre> <blockquote> <p>Conversion failed when converting the varchar value '8,' to data type int.</p> </blockquote> <p>Does anyone know how to fix, please? I've tried <code>CONVERT(VARCHAR, @TypeID)</code> but this doesn't seem to make any difference!</p>