One one of my projects I am currently working with Microsoft SQL Server Management Studio and came across the issue when saving file in .csv format. In particular some of the columns that I am extracting are of data type nvarchar and includes multiple lines within 1 cell.
When exporting data into a .csv file, Excel automatically drops the line no matter which delimiter I select (,, tab, or |). I assume this is due to CHAR(13) and/or CHAR(10) being present within some of the cells.
What already works for me is replacing CHAR(10)/CHAR(13) with some other characters but that is too much of the intervention into data integrity.
I was able to get what I need in SSRS tool, however given the large number of data i am wondering if there is a way to set up SQL Server Management Studio so it would "lock" cell contain and in case cell contains multiple lines/rows, it would still be shown in one cell.
I have tried a few articles on here and a few other resources but non of them seem to be answering this specific question.
Any help would be highly appreciated.