Here I am going to show you how to return a value from a
stored procedure written in SQL Server. As the first step we need to create a
stored procedure that returns a value. In my case, I have a database called car
and a table in it called tblCar. For counting the number of row I used the following stored procedure.
If you don’t know how to create a stored procedure in SQL
Server, please read this tutorial before we start.