About 12,000,000 results
Open links in new tab
  1. Getting return value from stored procedure in C# - Stack Overflow

    Apr 12, 2015 · retval.Direction = ParameterDirection.Output; ParameterDirection.ReturnValue should be used for the "return value" of the procedure, not output parameters. It gets the value …

  2. How To Use Output Parameter In Stored Procedure In C#

    In this code example, we will learn how to create a stored procedure with output parameters executed in a C# code and return back the values to the caller function.

  3. How can I get the output value from the stored procedure in C#

    May 14, 2022 · I have connected a stored procedure to a C# program using the entity frame work edmx model . I am trying to get an integer output value to a variable from the stored procedure …

  4. Return Output parameter from Stored Procedure in C and VBNet

    Nov 18, 2024 · In this article I will explain with an example, how to return Output Parameter from Stored Procedure in Windows Forms (WinForms) Application using C# and VB.Net.

  5. How to get return value from stored procedure in C#? - Namso …

    Dec 24, 2024 · To get the return value from a stored procedure in C#, you can use the `ExecuteScalar` method of the `SqlCommand` class. The return value of a stored procedure …

  6. C# Stored Procedure Return Values: 3 Efficient Methods

    We’ll examine three primary approaches: using a SELECT statement within the stored procedure, employing a RETURN value, and leveraging an OUTPUT parameter. Each approach offers …

  7. Using stored procedure output parameters in C# - Stack Overflow

    Jun 6, 2012 · { cmd.CommandType = CommandType.StoredProcedure; // set up the parameters cmd.Parameters.Add("@ContractNumber", SqlDbType.VarChar, 7); …

  8. How to Execute Stored Procedure With Parameters in C#

    Feb 2, 2024 · To create a stored procedure with parameters, we need to make an object of SqlParameter and use that object to define the name, data type, and value of the parameter …

  9. c# - Calling stored procedure with return value - Stack Overflow

    The stored procedure return value should be used only to indicate success (zero) or failure/warning (non-zero), not return data. Use an OUTPUT parameter or result set for that …

  10. SQL Stored Procedure - Return Value - Microsoft Q&A

    Jan 12, 2022 · a sql query can return multiple result sets, and out of band messages, and is stored procedure call, the return value (which is actually a type of output parameter). the return …

  11. Some results have been removed
Refresh