April 26, 2007 at 6:20 am
hi i am just wondering if u can use a stored proc(to have a group of values returned) in a stored proc or an sql statement and if so how to go about doin it thanks in advance
Tim
April 27, 2007 at 8:46 am
I hope I am reading your question right. You want to execute a stored procedure with output value inside another stored procedure ?
CREATE PROCEDURE procA
DECLARE @percent INT
EXEC procb '1', 'A', @pc = @percent OUTPUT
SELECT @percent
April 27, 2007 at 4:21 pm
Unless they are set based procs... "Death by SQL"... the idea of code reuse to process single records will absolutely kill performance and make more maintanence nightmares than you can shake a stick at.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 4, 2007 at 9:16 am
Have you thought of using functions in your stored procedures ? I've done this before with no apparent performance hit, and it makes debugging easier.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply