The formal parameter “@mode” was not declared as an OUTPUT parameter, but the actual parameter passed in requested output
问题 I have this stored procedure: ALTER PROCEDURE spCertificationType @result nvarchar(15) output, @mode int AS BEGIN if @mode = 1 begin exec spGeneratedID 2, @result output print @result end END but when I tried to execute it,it has this error The formal parameter “@mode” was not declared as an OUTPUT parameter, but the actual parameter passed in requested output. I tried to set @mode as output like this: ALTER PROCEDURE spCertificationType @result nvarchar(15) output, @mode int output AS BEGIN