Author Message
Anonymous

OK, here's one that should be obvious to me but apparently that particular neuron in my brain did not survive last weekend's alcohol bath... Given a stored proc "select count(*) from...Where..." how do I retrieve the count via a database operation? Is a 1 X 1 result set the best option?
WilsonYu
Joined: Nov 6, 2013
Messages: 3950
Offline
In your stored procedure definition, you should have a return parameter automatically defined. Look in the Database's management console to verify. OD will be able to discover that when you create the operation in the New Wizard.
WilsonYu
Joined: Nov 6, 2013
Messages: 3950
Offline
Not sure if my memory is correct on this automatic return parameter. It's probably better if you create an output parameter and assign the value to it in the stored procedure.
Go to:   
Mobile view