SQL Query force return carriage in string at certain keyword

I have a field with strings and would like to force a return carriage.  Is that possible?  

Example:

Updated 8/25/2015:  Tested and cleaned

To be changed to:

Updated 8/25/2015:
Tested and cleaned

So hoping to do a carriage return at the ":" symbol.  Any ideas?
holemaniaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ste5anSenior DeveloperCommented:
REPLACE([yourColumn], ':', ':' + CHAR(13)) in the SELECT statement.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Scott PletcherSenior DBACommented:
If you want to add the CR only for the first :, you can do this:

SELECT STUFF(column_name, CHARINDEX(':', column_name), 0,
    --the CASE is only if you need to test whether a colon actually appears in the data for not
    CASE WHEN CHARINDEX(':', column_name) > 0 THEN CHAR(13) ELSE '' END)
FROM table_name
...
0
holemaniaAuthor Commented:
ScottPeltcher,

Looks like your solution will work, but my colon doesn't stay in the first line, but went to the second line.  It's like this now.

Updated 8/25/2015
:Tested and cleaned
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Scott PletcherSenior DBACommented:
Sorry, I didn't adjust the starting byte properly:

SELECT STUFF(column_name, CHARINDEX(':', column_name) - 1, 0,
    --the CASE is only if you need to test whether a colon actually appears in the data for not
    CASE WHEN CHARINDEX(':', column_name) > 0 THEN CHAR(13) ELSE '' END)
FROM table_name
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
holemania, do you still need help with this question?
0
holemaniaAuthor Commented:
Thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.