SQL Server HASHBYTES conversion inconsistency?
问题 When I execute this hardcoded, I get the correct result: Declare @result nvarchar(32) Set @result = convert(varchar(32), hashbytes('MD5', '1' + 'One' + 'Two' + 'Three'), 2) select @result Result: 4173AB4C6EE66BC1FF7B7E5D44A872CA (correct) But when I call/execute this stored procedure, giving it the same parameters, it's a different result ALTER Procedure [db_owner].[CheckTheTransaction] @DataID nvarchar(50), @Data1 nvarchar(50), @Data2 nvarchar(50), @Data3 nvarchar(50) as Declare @result