?
Solved

Adding a CRLF to a Select query?

Posted on 2007-04-09
4
Medium Priority
?
847 Views
Last Modified: 2008-01-09
SELECT *, ISNULL(ClientInCareOf,'') + char(13) + ISNULL(ClientAddr1,'') + char(13) + ISNULL(ClientAddr2,'') AS ClientFullAddress FROM ClientTable(NOLOCK) WHERE RecID ='" & ReturnValue & "'

I can't seem to get this to work, what am I missing?

Thanks.
0
Comment
Question by:ApexCo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 23

Expert Comment

by:Saqib Khan
ID: 18877138
Try this

"SELECT *, ISNULL(ClientInCareOf,'') + '<br>' + ISNULL(ClientAddr1,'') + '<br>' + ISNULL(ClientAddr2,'') AS ClientFullAddress FROM ClientTable(NOLOCK) WHERE RecID ='" & ReturnValue & "'"



0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 200 total points
ID: 18877353
CRLF is CHAR(13) + CHAR(10)
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 18877365
>>I can't seem to get this to work, what am I missing?<<
Also, please elaborate what you mean by this.
0
 
LVL 8

Author Comment

by:ApexCo
ID: 18877770
Once I added them both in I got what I was after.

Thanks.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Suggested Courses

752 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