+ (Binary String Concatenation) (TSQL Operator)

Concatenates two binary strings.

Syntax

expression + expression

Arguments

expression
is an expression of type varbinary.

Return Types

Returns varbinary.

Remarks

If any expression is NULL, the result is NULL.

Examples

PRINT 0x1122 + 0x33445566;
PRINT 0x1122 + NULL;

The result is:

0x112233445566
<NULL>