if (select top 1 0 from sys.databases where name = 'NucelarMonitor') is null create database NucelarMonitor collate Latin1_General_100_CI_AS_SC_UTF8 go use NucelarMonitor if object_id(N'dbo.hash_big_data', N'FN') is not null drop function dbo.hash_big_data go create function dbo.hash_big_data (@value varchar(max)) returns binary(64) begin return (select top 1 convert(binary(64), hashbytes('SHA2_256', convert(nvarchar(max), @value)))) end go