Hi,
I have a confusing in stored procedure in sql, whether stored procedure returns a value or not . If it returns, then what types of value we can returned by the stored procedure?
Plz reply..
Hi,
I have a confusing in stored procedure in sql, whether stored procedure returns a value or not . If it returns, then what types of value we can returned by the stored procedure?
Plz reply..
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
SenthilkumarRank #387 · 6.5K reputationPosted May 24, 2012, 9:54 PM EDT
Stored procedure returns a value in the form of table.
SELECT GETDATE()
SELECT * FROM Employees
And also you can return a value using the RETURN statement.
Anil KumarRank #367 · 6.8K reputationPosted May 26, 2012, 9:28 PM EDT
You can return result-sets (from select statements) or single value (you specify your data types) from your stored procedure.
There are different ways to get return values from stored procedure. In some technique you are limited with return data type like when you use RETURN.
Please go through the SQL Stored Procedures to know different techniques for getting return values.