VARCHAR_TO_VARBINARY

SYS_BOOT.MGMT.VARCHAR_TO_VARBINARY(sourceString VARCHAR(65535))
Returns VARBINARY(65535)

This function converts a hex-encoded binary string (suitable for use as a VARBINARY literal) into the corresponding VARCHAR value. For instance, it converts the string ‘01020304’ into the byte array [1,2,3,4].

The inverse operation is SYS_BOOT.MGMT.VARBINARY_TO_VARCHAR().