0

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

4

1 に答える 1

1

私の勘違いだったようです。SQL Server の出力には改行がないように見えましたが、結局保持されていました。これが、私のようにつまらない瞬間を過ごしている他の誰かに役立つことを願っています.

于 2012-07-16T13:57:17.813 に答える