Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Other SQL Server Topics (2005)
 Store Procedure Return Values

Author  Topic 

delpi767
Starting Member

11 Posts

Posted - 2009-03-02 : 23:17:55
I have a stored procedure that returns a subset of transactions.

Can that same procedure return the sum of all of those transactions using an out parameter or must I write a separate procedure to do so?

Thanks,

Mac

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-03-03 : 09:17:20
No, you can rewrite the procedure code so there is an output parameter populated with sum of transactions.



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -