In SQL CE if I am inserting a string (includes newlines)
N'hello
--Janet'
It is treated as an unterminated string followed by a comment Is there a way to escape the double dash? (this problem refers to cqlcecmd40 as found at http://sqlcecmd.codeplex.com)
Being part of a string it needs no escaping.
-- is only interpreted as the start of a comment outside of strings.
Update (after question was revised):
You can do the following to achieve the same effect:
N'hello' + CHAR(13) + CHAR(10) + '--Janet'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With