This is my function:
create function fn_Inventory(@qty int, @item_ID int)
returns int
as begin
declare @result int
set @result = (SELECT Quantity - @qty from Items where @item_ID = item_ID)
return @result
end
And I want to execute this function from my asp.net code; how to do it?