FORMATMESSAGE
Description
Sample Source Pattern
Syntax
FORMATMESSAGE ( { msg_number | ' msg_string ' | @msg_variable} , [ param_value [ ,...n ] ] ) Examples
SELECT FORMATMESSAGE('This is the %s and this is the %s.', 'first variable', 'second variable') AS RESULT; RESULT|
-----------------------------------------------------------+
This is the first variable and this is the second variable.|SELECT
--** MSC-WARNING - MSCEWI4065 - FORMATMESSAGE WAS CONVERTED TO CUSTOM UDF FORMATMESSAGE_UDF AND IT MIGHT HAVE A DIFFERENT BEHAVIOR. **
FORMATMESSAGE_UDF('This is the %s and this is the %s.', ARRAY_CONSTRUCT('first variable', 'second variable')) AS RESULT;RESULT |
-----------------------------------------------------------+
This is the first variable and this is the second variable.|Related EWIs
Last updated
Was this helpful?