In TSQL I concatenate different rows to one cell with: FOR xml path('')
I place the next characters after every line to produce a linefeed.
+ char(13) + char(10)
SSRS does generate a linefeed but also prints these CRLF characters.
Every line ends with: 
Is there a solution?
Generate CRLF in TSQL to be accepted by SSRS
170 Views Asked by Michel van Eijk At
1
There are 1 best solutions below
Related Questions in T-SQL
- Dynamic query creation with Array like implementation
- How to locate relevant tables or columns in a SQL Server database
- Calling a REST API from SQL Server
- How do I use Poor Man's T-SQL Formatter in SSMS v20?
- sp_executesql Not Working with a Parameters search nvarchar
- Using MSXML2.ServerXMLHTTP with SQL Server status, statusText and responseHeader are all null
- tsql functions like REPLACE() failing in azure data factory pipeline connected to salesforce
- GROUP BY with multiple nested queries T-SQL
- How to get the superset of all XML paths from an XML column in a table
- Split Invoice Total into multiple Rows but Split always equals Total
- Conversion failed when converting date and/or time from character string while ordering by date or string
- SQL How to add a conditional to the aggregate function within a pivot table?
- Update the column which has sequence number dynamically
- SQL query to extract incremental data from a table in SQL Server
- Convert Date format in a table
Related Questions in REPORTING-SERVICES
- SSRS cannot aggregate a variable
- How to filter data in a report using Microsoft Report Builder based on Orders of Service (OS) dates?
- Check if a value is not in a list in SSRS
- SSRS Report Builder returns error when entering more than one value in a parameter filter
- SSRS - Do not want to round a percent
- SSRS report exporting as PPT file
- SSRS use a dynamic SQL query with parameter
- Error when trying to change subscription owner (SSRS, SQL Server 2016)
- Background Colour Conditional Formatting in PBI Report Builder
- do you know any free reporting services like devexpress or boldreports?
- Embedded SSRS permissions error using rsweb:ReportViewer
- SSRS - Visual Studio round issue
- How to Implement Multi-Parameter Queries in SSRS Report Builder with Databricks ODBC?
- I want to integrate Crystal reports or SSRS reports in react js
- Column Grouping in SSRS report Matrix
Related Questions in ENCODING
- When sanitize/encode while implementing tags system like on SO
- Generating synthetic data for .ORC file in python
- WebClient.UploadData is returning control characters after non-ascii characters
- How to switch encoding of LibreOffice strings in Java UNO API?
- Userform to answer original userform
- Encoding problem on MySQL: Why some non-ASCII characters get encoded on more than 4 bytes?
- What encoding does the 'text' response type option in HttpClient use?
- Issue downloading audio with ytdlp on a raspberry pi
- KeyError: "['Building Age', 'Floor', 'Number of Floors'] not in index"
- FFMPEG fast quality video encoding without quality loss & less storage occupancy (maybe using GPU)
- Encoding attributes in an Genetic Algorithm
- React - MP4 - The file was loaded in a wrong encoding - 'UTF-8'
- How to re-encode an audio to match another one, to avoid re-encoding the whole audio
- Sqlalchemy - PostgreSQL - UnicodeDecodeError
- Calculate difference in encoding WITHOUT actually writing to a file?
Related Questions in NEWLINE
- How to appropriately handle newlines and the escaping of them?
- This program is not \n terminating and keep taking input
- Why doesn't \r\n / CRLF result in the line being reread in perpetuity?
- antlr4 expression separator with '\n' and let parser to ignore '\n' like in Kotlin
- Replacing carriage returns (CR) or line feeds (LF) in JSON
- Ignoring any characters and numbers after empty line in C
- LLM generates `<0x0A><0x0A>` in place of newline character in LM studio
- How to remove the ASCII nul at the end of clipr::wirte_clip?
- "\n" not working in text coming from mongo, but the concatened "\n" works
- Exclude newline in TEXTBEFORE formula
- Spacing in Java - 3.27.1: LAB: Number pattern
- Remove any CRLF from file that does not have a SPACE before CRLF in Linux
- Handling fixed-length records with embedded unix newlines
- Why am I not getting line breaks of a JSON attribute using python in Sphinxcontrib-httpexample?
- How to get line breaks of a JSON attribute using Python?
Related Questions in XML-ENTITIES
- Copying an XML file including doctype, entities and notations XSLT 3
- Unable to parse any XML input. Error on line 5: The reference to entity "utm_medium"
- How to make XSL Transformer safe for malicious attacks like XXE?
- How to include "&" in XML file
- Creation of GDML include using python and lxml
- Dereferencing entities using XSLT
- DOMDocument::load(): Namespace default prefix was not found in Entity
- Java 11 XML parser pauses and displays entity error when calling normalizeDocument() on XHTML 1.1 document
- XML character entities not parsing
- Spark XML does not seem to work with XML Entities (such as &myentity;)
- XSL entity definitions ignored - why?
- Entity Declaration missing when updating XML Files - Java
- Use perl LibXML Element->getAttribute() without expanding unicode entities in value
- XML entities don't render
- Camel Json to XML, what about XML entities?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The XML you produce with a simple
FOR XML PATH('')(in order to do something likeSTRING_AGG()) will translate any forbidden character (such as<, > and &and many more) to the correspondig entity. An entity is&abc;, whileabcstands for a character (like<) or you see some kind of hexadecimal or unicode code point. This is done while creating the XML implicity. Reading something out of this XML will do the invers process - again implicitly.But: Your code does not return the result as the native XML type.
Try this (best switch the output to "text"):
returns
But if you handle the XML as a typed result, you can use
.value():returns
You did not show any code, but I assume that you've got something like
Change this to