The information in this article applies to:
SYMPTOMS
Microsoft SQL Server identifies a Transact-SQL command containing the
backslash (\) followed by the carriage return (0x0d) and line feed
(0x0a) as an escape sequence.
The first insert contains the \<cr><lf> sequence, and when returned from SQL Server, is c:X. The escape sequence is scanned out by the SQL Server. However, replacing the \<cr><lf> with \\<cr><lf><cr><lf>, as in the second insert, yields the expected results. CAUSESQL Server sees the \<cr><lf> (\ + 0d + 0a) sequence as an escape sequence. WORKAROUNDTo work around this problem, correct the Transact-SQL string, replacing the \<cr><lf> with \\<cr><lf><cr><lf> before sending the query to the SQL Server.
Keywords : SSrvProg |
Last Reviewed: April 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |