Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Nested Stored procedure Expand / Collapse
Author
Message
Posted Tuesday, December 30, 2008 11:07 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, February 12, 2009 11:51 AM
Points: 8, Visits: 28
Hi
i have 3 stored procedures prc_A, prc_B, prc_C. prc_A calls prc_B, which in turn calls prc_C. There was an error with prc_C, which bubbled up to prc_A. After fixing that error, I recompiled and ran prc_C and it ran OK. I then tried to run prc_B, in order to test the call to prc_C. I got the same error as before. This was baffling to me since the procedure was fixed and ran error free earlier. So I added a dummy SELECT stmt and re-compiled prc_B, kind of forcing it to look at the prc_C. When I ran prc_B again, it ran without a problem. Now, I tried to run prc_A to make sure all is well - again, I got the same error message! Thinking that the compiler must have gotten stumped, I tried adding a dummy SELECT to prc_A - still it would give me the same error. It is as if, prc_A completely ignored the corrections made to prc_C! It is quite a weird situation. I'd appreciate any help with this issue
Thanks.
Post #627820
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse