You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refresh BASE64_ENCODE and BASE64_DECODE (PR 10264) (#36219)
* Update include statement for BASE64_ENCODE documentation
This is in SQL Server 2025 as well
* Edit pass
---------
Co-authored-by: Steve Jones <steve.jones@red-gate.com>
@@ -58,15 +58,15 @@ The encoded string's alphabet must be that of [RFC 4648 Table 1](https://datatra
58
58
Msg 9803, Level 16, State 20, Line 15, Invalid data for type "Base64Decode"
59
59
```
60
60
61
-
- If the data has valid characters, but incorrectly formatted, the function returns error `Msg 9803, State 21`.
61
+
- If the data has valid characters but is incorrectly formatted, the function returns error `Msg 9803, State 21`.
62
62
63
-
- If the input contains more than two padding characters or padding characters followed by extra valid input the function returns error `Msg 9803, State 23`.
63
+
- If the input contains more than two padding characters or padding characters followed by extra valid input, the function returns error `Msg 9803, State 23`.
64
64
65
65
## Examples
66
66
67
67
### A. Standard BASE64_DECODE
68
68
69
-
In the following example, the base64 encoded string is decoded back into varbinary.
69
+
In the following example, the Base64 encoded string is decoded back into **varbinary**.
70
70
71
71
```sql
72
72
SELECT BASE64_DECODE('qQ==');
@@ -78,9 +78,9 @@ SELECT BASE64_DECODE('qQ==');
78
78
0xA9
79
79
```
80
80
81
-
### B. BASE64_DECODE a standard base64 string
81
+
### B. BASE64_DECODE a standard Base64 string
82
82
83
-
In the following example, the string is base64 decoded. Note the string contains URL-unsafe characters `=` and `/`.
83
+
In the following example, the string is Base64 decoded. Note the string contains URL-unsafe characters `=` and `/`.
@@ -55,20 +55,20 @@ Optional integer literal or expression, which specifies whether the output of th
55
55
56
56
## Remarks
57
57
58
-
The encoded string alphabet is that of[RFC 4648 Table 1](https://datatracker.ietf.org/doc/html/rfc4648#section-4) and might add padding. The URL-safe output uses the base64url alphabet of[RFC 4648 Table 2](https://datatracker.ietf.org/doc/html/rfc4648#section-5) and doesn't add padding. This function doesn't add any new line characters.
58
+
The encoded string uses the alphabet from[RFC 4648 Table 1](https://datatracker.ietf.org/doc/html/rfc4648#section-4) and might include padding. The URL-safe output uses the Base64URL alphabet from[RFC 4648 Table 2](https://datatracker.ietf.org/doc/html/rfc4648#section-5) and doesn't include padding. This function doesn't add any new line characters.
59
59
60
60
In each case, the database default collation is used. For more information on the supported collations in [!INCLUDE [fabric](../../includes/fabric.md)], see [Tables](/fabric/data-warehouse/tables#collation).
61
61
62
-
If `url_safe`is true, the base64url string that is generated is incompatible with SQL Server's XML and JSON base64 decoders.
62
+
If you set `url_safe`to true, the generated Base64URL string isn't compatible with SQL Server's XML and JSON Base64 decoders.
0 commit comments