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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 insert-exec issue
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

135 Posts

Posted - 05/08/2013 :  07:21:19  Show Profile  Reply with Quote
while i am calling sp from another sp i am getting error

"Cannot use the ROLLBACK statement within an INSERT-EXEC statement."

James K
Flowing Fount of Yak Knowledge

3873 Posts

Posted - 05/08/2013 :  09:01:28  Show Profile  Reply with Quote
This is a restriction on insert-exec - take a look at the last reply in this thread:

For sharing data between procedures, there are other ways - see Sommarskog's blog:
Go to Top of Page

Posting Yak Master

212 Posts

Posted - 05/16/2013 :  01:41:37  Show Profile  Visit prett's Homepage  Reply with Quote
Agree with James K,

I will recommend to take a look at 'How to Share Data Between Stored Procedures' on this post:
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000