I currently have a stored procedure I'm working on that's supposed to output a message when something fails.
ALTER PROCEDURE---
@in_id INT
@msg NVARCHAR(30) = OUTPUT
The procedure variables are structured like this where one of them is an input parameter and the msg is an output.
The idea is that it uses that input parameter of an ID which works as an identification that changes the message based on the ID so the end of the sproc looks something like:
SET @msg = usf_change_message(@id, @msg)
I get an error stating that the sproc is trying to treat @msg as an input variable when in actuality it's an OUTPUT param? Can someone help me with this issue?