B
B
BaJar2020-07-09 12:52:48
SQL Server
BaJar, 2020-07-09 12:52:48

How to make a line feed?

It is necessary that in the SMS every new phone number is displayed from a new line. I send SMS through sql server procedure. char(10) = Char(13) don't work. More precisely, they work only on SSMS.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Tsvetkov, 2020-07-09
@BaJar

SELECT CONVERT(VARCHAR, CAST( 'SMS' + CHAR(0x0D) + CHAR(0x0A) + 'SMS' AS binary), 2)

As you can see 534D53 0D0A 534D53everything works.
Try to read this value as a BLOB.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question