Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

base64 encode sql server

--String to Base64
SELECT CAST('string' as varbinary(max)) FOR XML PATH(''), BINARY BASE64

--Base64 to String
SELECT CAST( CAST( 'c3RyaW5n' as XML ).value('.','varbinary(max)') AS varchar(max) )
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #encode #sql #server
ADD COMMENT
Topic
Name
2+3 =