Hi,I've got a simple stored procedure that retrieves a group of records from a SQL Server table.One of the fields might contain two right square brackets (]]). If that happens, I don't want to display the brackets to the user. I want to replace the brackets with the line-feed character, Chr(10).The query in my SPROC is a bit long, so I'll shorten it down for simplicity's sake:SELECT FName, LName, DateChanged, CommentsFROM AddressChangeLog
The "Comments" field is the field which might contain the square brackets. This is essentially what I'm thinking it'll be (forgive how crude and completely incorrect this will probably be ...)if(CHARINDEX(']]', Comments) = 0 return Commentselse return Replace(Comments, ']]', 'Chr(10)') I might be able to find a way to replace the square brackets in my program (VB.NET web app, in my case), but I was hoping that there'd be a way to do it in the SQL.Thanks in advance!Suzanne