Solved

Replacing a carriage return with a comma

Posted on 2011-09-13
2
447 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

706 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

18 Experts available now in Live!

Get 1:1 Help Now