SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Nested Stored procedure


Nested Stored procedure

Author
Message
kanthi.iyer
kanthi.iyer
Valued Member
Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)

Group: General Forum Members
Points: 64 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.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum







































































































































































SQLServerCentral


Search