Returning SQL Server Output parameter to C# by Stored Procedure
问题 I have a stored procedure in SQL Server 2012 with an OUTPUT parameter. When I call the c# decrypt function, at the point when I hit ExecuteNonQuery() , I always get the error: Procedure or function 'DecryptCCode' expects parameter '@decryptedStr', which was not supplied. How do I get the OUTPUT value of my stored procedure in code? Thanks. Stored procedure: ALTER PROCEDURE [dbo].[DecryptCCode] @decryptedStr nchar(5) OUTPUT AS BEGIN SET NOCOUNT ON; IF NOT EXISTS (SELECT * FROM sys.symmetric