Skip to content
Snippets Groups Projects
Commit 82ce072b authored by Ken's avatar Ken Committed by Beakerboy
Browse files

Resolve #3221575 "Connect to network"

parent d9c0dfc6
Branches master
Tags 7.x-3.0
No related merge requests found
CREATE FUNCTION [dbo].[LPAD](@str nvarchar(max), @len int, @padstr nvarchar(max)) RETURNS nvarchar(4000) AS
CREATE FUNCTION [dbo].[LPAD](@str nvarchar(max), @len int, @padstr nvarchar(max)) RETURNS nvarchar(4000) AS
BEGIN
RETURN left(@str + replicate(@padstr,@len),@len);
END
\ No newline at end of file
RETURN left(@str + replicate(@padstr,@len),@len)
END
CREATE FUNCTION [dbo].[MD5](@value varchar(255)) RETURNS varchar(32) AS
CREATE FUNCTION [dbo].[MD5](@value varchar(255)) RETURNS varchar(32) AS
BEGIN
RETURN SUBSTRING(sys.fn_sqlvarbasetostr(HASHBYTES('MD5', @value)),3,32);
END
\ No newline at end of file
RETURN SUBSTRING(sys.fn_sqlvarbasetostr(HASHBYTES('MD5', @value)),3,32)
END
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment