About 833,000 results
Open links in new tab
  1. BASE64_ENCODE (Transact-SQL) - SQL Server | Microsoft Learn

    Mar 12, 2025 · Applies to: Azure SQL Database SQL analytics endpoint and Warehouse in Microsoft Fabric BASE64_ENCODE converts the value of a varbinary expression into a …

  2. Base64 encoding in SQL Server 2005 T-SQL - Stack Overflow

    Feb 22, 2011 · The simplest and shortest way I could find for SQL Server 2012 and above is BINARY BASE64 : SELECT CAST('string' as varbinary(max)) FOR XML PATH(''), BINARY BASE64

  3. How to Encode and Decode Base64 in SQL Server - IToolkit

    Jul 10, 2023 · Learn how to use built-in functions in SQL Server to encode and decode Base64 efficiently. In this blog post, we will discuss how to use Base64 encoding and decoding in SQLServer. Base64 encoding is a way to convert binary data into an ASCII text format, which is more convenient for storage and transmission.

  4. How to decode BASE64 in Standard SQL? - Stack Overflow

    Oct 25, 2018 · Or, you can use SAFE_CONVERT_BYTES_TO_STRING() to decode a BYTES to a STRING replacing any non-valid UTF-8 bytes with Unicode codepoint U+FFFD. Alternatively, you can use FORMAT() to display each byte in a BYTES in hex \x## format.

  5. Retrieve varbinary value as BASE64 in MSSQL - Stack Overflow

    I'm looking for a way for retrieving Entity Data Model (EDM) from __MigrationHistory table using only T-SQL (so anyone, using Microsoft SQL Server Management Studio only, could do the same). I want to have a valid BASE64 string value. I don't want to fully decompress it to EDMX. I don't want to get it from *.resx migration file.

  6. CAST and CONVERT (Transact-SQL) - SQL Server | Microsoft Learn

    Sep 3, 2024 · SQL Server returns an error message when converting nonnumeric char, nchar, nvarchar, or varchar data to decimal, float, int, numeric. SQL Server also returns an error …

  7. Base64 Encoding And Decoding In SQL Server - Guruji Point

    In this article we will learn How to encode a string into Base64String and how to decode Base64String to string. How to create a function for converting Base64 to string .

  8. BASE64 Encode and Decode in T-SQL - SQLServerCentral

    Jul 13, 2001 · SET @block_lenght = 3 - ((@block_count * 3) - @input_length) ELSE SET @block_lenght = 3 --encode the 3 character block SET @encoded_text = …

  9. BASE64 Encode and Decode in T-SQL - optimized - SQLServerCentral

    Jul 13, 2001 · declare @map as char (64) SET @map = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' declare @mapr as char (122) set @mapr = convert (binary (122),replicate (char (255),127))...

  10. T-SQL: Easy Base64 Encoding and Decoding - Medium

    Oct 18, 2012 · Here is a complete sample showing a complete round trip from string to binary to base64, back to binary and back to string again. declare @source varbinary (max), @encoded varchar (max),...

  11. Some results have been removed
Refresh