I\'d like to write a T-SQL query where I encode a string as a Base64 string. Surprisingly, I can\'t find any native T-SQL functions for doing Base64 encoding. Does a nativ
You can use just:
Declare @pass2 binary(32) Set @pass2 =0x4D006A00450034004E0071006B00350000000000000000000000000000000000 SELECT CONVERT(NVARCHAR(16), @pass2)
then after encoding you'll receive text 'MjE4Nqk5'