sql SERVER md5

-- sql 2008
declare @LogonPass varchar(100)='123456'
set @LogonPass =  substring(sys.fn_sqlvarbasetostr(hashbytes('MD5',@LogonPass)),3,32)
select @LogonPass -- e10adc3949ba59abbe56e057f20f883e

你可能感兴趣的:(sql SERVER md5)