Scalar-valued Functions [dbo].[mod]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@numint4
@num2int4
Permissions
TypeActionOwning Principal
GrantExecutepublic
SQL Script
/****** Object:  User Defined Function dbo.mod    Script Date: 12/1/2005 11:50:34 PM ******/

CREATE FUNCTION [dbo].[mod](@num int, @num2 int )  
RETURNS int AS  
BEGIN
    RETURN ROUND(@num, 0, 1) % ROUND(@num2, 0, 1)
END
GO
GRANT EXECUTE ON  [dbo].[mod] TO [public]
GO
Uses
Used By