String_To_Base64
Converts Non-Unicode varchar string to a Base64 string
- Free Function
- SQL Server Compatibility: 2008, 2012, 2014, 2016, 2017
SELECT SQLHTTP.net.String_To_Base64 ( @String )
Name | Type | Description |
---|---|---|
@String | varchar(MAX) | Non-Unicode data string |
varchar(MAX)
1 2 3 4 5 6 |
DECLARE @Text varchar(MAX) SET @Text = 'The quick brown fox jumps over the lazy dog' SELECT SQLHTTP.net.String_To_Base64(@Text) |
1 2 3 4 5 |
---------------------------------------------------------------- VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZw== |