sql - How to get row count of a stored procedure? -



I have a stored procedure that accepts client numbers and returns some data. I have another stored procedure that internally calls the first one and needs to use line calculation from previously stored procedure.
Can I get it anywhere without using a temporary table (to get the result set) or parameter in the first stored function using one. Thanks.

Since you are already calling your archived operation, you already have < Ability to get the number of rows returned using code> @@ ROWCOUNT function. Below is an example of using the `@@ Rocheckant

  to start Proc. Test 1. Start with * sys.tables from selection; EXEC Test1 PRINT @@ ROWCOUNT END EXEC Test2  

In my example I have just printed that value, but you can simply assign it in one variable in the same process and it Can use for something else.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -