Add a parameter, using ParameterDirection.ReturnValue
. The return value will be present in the paramter after the execution.
More Related Contents:
- Insert results of a stored procedure into a temporary table
- SET NOCOUNT ON usage
- Function vs. Stored Procedure in SQL Server
- SQL Server – How to lock a table until a stored procedure finishes
- What is a stored procedure?
- How to assign an exec result to a sql variable?
- SQL Server SELECT into existing table
- How to check if a stored procedure exists before creating it
- Dynamic Sorting within SQL Stored Procedures
- How can I determine the status of a job?
- Procedure or function !!! has too many arguments specified
- How can I generate a temporary table filled with dates in SQL Server 2000?
- Stored procedure that exports data into csv files only exports to one file
- In SQL Server, what does “SET ANSI_NULLS ON” mean?
- Comma separated values in a database field
- Inserting rows into a table with one IDENTITY column only [duplicate]
- Eliminate and reduce overlapping date ranges
- Calculate a Running Total in SQL Server
- Select statement to find duplicates on certain fields
- Getting only Month and Year from SQL DATE
- WHERE Clause vs ON when using JOIN
- How to create a PivotTable in Transact/SQL?
- Dynamic SQL to generate column names?
- Split one column value into multiple column values
- Why execute stored procedures is faster than SQL query from a script?
- T-SQL and the WHERE LIKE %Parameter% clause
- How to find consecutive rows based on the value of a column?
- Which SQL query is faster? Filter on Join criteria or Where clause?
- Know relationships between all the tables of database in SQL Server
- How to search SQL column containing JSON array