Create a Parameterized Function in sql server

Ranjeet_8
Posted by Ranjeet_8 under Sql Server category on | Points: 40 | Views : 1266
Below is an example of parametrized function "

CREATE FUNCTION Addition(@Parameter1 int,@Parameter2 int)
RETURNS int
BEGIN
DECLARE @AddResult int
SET @AddResult = @Parameter1 + @Parameter2
RETURN @AddResult
END;
GO

Comments or Responses

Login to post response