Created
February 8, 2022 11:15
-
-
Save ArtemAvramenko/e910b31f7f72f22baec300ff97e89740 to your computer and use it in GitHub Desktop.
T/SQL Generate Gravatar url from email
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT GravatarUrl = | |
'https://www.gravatar.com/avatar/' + | |
LOWER(CONVERT(VARCHAR(32), HashBytes('MD5', '[email protected]'), 2)) + | |
'?s=48&d=https%3A%2F%2Fmyserver.test%2Fdefault.png' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment