create function funAdd2(@a int, @b int, @c int output)
returns int
as
begin
declare
@c = @a+@b

return (@c)
end

let me understand first why you need to pass a out parameter to a function.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.