troubleshooting Question

Concat into separate lines

Avatar of D W
D W asked on
Microsoft SQL ServerSQL
6 Comments2 Solutions78 ViewsLast Modified:
I am using T-SQL and what I am trying to accomplish is concatenate three columns. But I would like each of the columns to start on a new line.  The three columns I have are date,subject,text.
right now this is what I am using:

CONCAT('Date: ', Date, 'Subject: ',Subject, 'Text: ',Text ) As 'Timeline'

How can I modify this concat function to put the date on one line then subject on another line then text on another line?

thank you
Paul MacDonald
Director, Information Systems

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros