Back to OIM Explorer

dbo.QBM_FCVStringToChecksum

Scalar FunctionSQL_SCALAR_FUNCTIONSandbox DB

Scalar Function.

Source: sandbox-db sys.sql_modules

Source size: 182 characters

Interpretation

  • Database function. Usually supports views, validation, or calculated predicates; look at referenced-by entries for callers.

Relations

  • No extracted relations.

Typed Edges

  • No typed edges extracted for this source.

References

  • No direct source references extracted.

Referenced By

  • No direct source references extracted.

Complete Source

SQL8 lines
1CREATE FUNCTION dbo.QBM_FCVStringToChecksum(2  @in varchar(1000)3) RETURNS int4  WITH SCHEMABINDING5AS6BEGIN7  RETURN(convert(int, substring(hashbytes('sha1', @in), 3, 4)))8END
Open raw exported source
SQL ยท Raw3 lines
1   create   function dbo.QBM_FCVStringToChecksum(@in varchar(1000) ) returns int with SCHEMABINDING as begin return( convert(int, substring( hashbytes2('sha1', @in), 3, 4)) ) end 3