A RETURN statement with a return value cannot be used in this context
I get that error, When I try this:
Declare @OrderNumber int, @Error_Count int, @today datetime
Select @today = getdate()
Select @OrderNumber = (Select MAX(OrderNumber) from Orders)
Select @OrderNumber = (Sum(@OrderNumber +...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.