SQL Server and line breaks
Hey,
I'm outputting a javascript array from .net using stringbuilder.
So far I've replaced single quotes with \\' (two because they're escape characters for .net and javascript)
Im still getting 'unterminated literal string' errors because I want to be able to include line breaks in the text field. I need something along the lines of:
.Replace("code for line break in SQL","\n")
How would I do this using .net & SQL Server?
Ta in advance,
Pete
|