Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot use the ROLLBACK statement within an INSERT-EXEC statement [duplicate]

Cannot use the ROLLBACK statement within an INSERT-EXEC statement

I am using two stored procedures. the first sp returns some int value

I am using this in the second sp with INSERT EXEC

But when i am executing the second sp , I am getting the above error

Please help

like image 237
Himanshu Avatar asked Oct 04 '10 10:10

Himanshu


1 Answers

Take a look at this link. Hope it helps: Errors: "INSERT EXEC statement cannot be nested." and "Cannot use the ROLLBACK statement within an INSERT-EXEC statement." How to solve this?

like image 200
Vijay Selvaraj Avatar answered Nov 19 '22 22:11

Vijay Selvaraj