Solved

Replacing a carriage return with a comma

Posted on 2011-09-13
2
448 Views
Last Modified: 2012-05-12
I have an sql statement:  SELECT Emp_LName, Emp_FName, Comments FROM Employee
The Comments field has carriage returns.  Is there a way to replace the carriage returns with a comma within the sql statement?
0
Comment
Question by:LoriLHS
2 Comments
 
LVL 8

Expert Comment

by:pdd1lan
ID: 36531336
0
 
LVL 32

Accepted Solution

by:
ewangoya earned 500 total points
ID: 36531369

SELECT Emp_LName, Emp_FName, REPLACE(Comments, CHAR(13), '.') [Comments] FROM Employee
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now