As part of a (C#) windows service I'm working on I'm pulling the contents of a CSV and dumping them into a single field on a single row in a DataTable. I'm using a DataTable because at times I may have more than one CSV to add.
The problem is, the SqlDataAdapter insert is removing the line-breaks and converting these into spaces.
So does anyone have any idea if it's possible to preserve line-breaks? Or am I just going to have to go with replacing the line-breaks with some other marker that I can then convert back into line-breaks later?
Cheers