Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -

Wrapping String Values For Readability

c# string

  • Please log in to reply
13 replies to this topic

#13 crokett


    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 109 posts
  • Programming Language:C#, Perl
  • Learning:C#, Perl, Transact-SQL

Posted 23 September 2012 - 05:54 PM

Thanks Black Rabbit. I will look at that. I thought there was another way, but I guess not, maybe I am thinking of you don't worry about it if you don't use @ in front of the string, but then you have to escape all the special characters you need?
  • 0

#14 BlackRabbit


    CodeCall Legend

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3871 posts
  • Location:Argentina
  • Programming Language:C, C++, C#, PHP, JavaScript, Transact-SQL, Bash, Others
  • Learning:Java, Others

Posted 23 September 2012 - 07:34 PM

Truth be told, the bulk load has its own way to deal with all the possible nuissances a csv file can bring to the table,
from newline type to nulls and of course error management, you can tell the bulk load what to do in case of row error, you can send those rows to a different file and keep working.

in my personal case i prefer to handle it myself with a library, i feel comfortable having my code in total control of the situation :D
  • 0

Also tagged with one or more of these keywords: c#, string

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download