Show all Hide all
Not available in Cloud edition.

Decodes text using the specified encoding.

Type: Scalar function
Area of use: General use

Return value: nvarchar(max)

The decoded text.


@Data mandatory varbinary(max)
The encoded bytes.
@Encoding mandatory nvarchar(300)
The encoding to use. This can be a string such as 'us-ascii', 'utf-8' or 'iso-8859-1'. It can also specify a windows code page, such as 1252.