Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Backslash
Message
From
27/10/2010 17:44:49
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Backslash
Miscellaneous
Thread ID:
01487286
Message ID:
01487286
Views:
102
I am trying to insert some data into a SQL Server table. One of the columns is a VARCHAR column with the possiblity of having some carriage return and line feed characters. The problem is that on a line that ends with a backslash followed by the carriage return and line feed characters, the backslash is being truncated. How can I preserve the backslash character?

Here is a sample. Note the "crlf" characters are the actual carriage return and line feed characters, not acutal "c" "r" "l" "f" characters.

Source:
This is a test\crlf
This is the second line.
The actual data after insert:
This is a test
This is the second line.
Thanks,
Dan Jurden
djurden@outlook.com
Next
Reply
Map
View

Click here to load this message in the networking platform