Base64 encoding in SQL Server 2005 T-SQL

后端 未结 10 1028
傲寒
傲寒 2020-11-22 10:06

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

10条回答
  •  深忆病人
    2020-11-22 10:28

    No, there is no native function, this method has worked for me in the past: http://www.motobit.com/help/scptutl/sa306.htm
    so has this method:
    http://www.vbforums.com/showthread.php?t=554886

提交回复
热议问题