I want the stored procedure in SQL Server 2008 to have a default value set for one of its parameters. I want this value to be a CRLF sequence. Obviously, SQL Server does not allow me to do this:
CREATE PROCEDURE SomeProc
@arg1 nvarchar(2) = CHAR(13) + CHAR(10),
@arg2
...
I know that I could write this sequence simply as:
CREATE PROCEDURE SomeProc
@arg1 nvarchar(2) = '
',
@arg2
...
but it seems ... not quite right. What if I send this script to someone via email and the CRLF is converted to LF? Or some place accidentally added? Or finally, what if I need a different sequence (let it be any Unicode character)?
, , CREATE PROCEDURE .
EXEC .
ASCII/Unicode ?