Click here to Skip to main content
16,016,570 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Frnds,

I hav a doubt whether we can execute a nested stored procedures.. I.e. in our single page we have multiple insert,delete,update commands.. we like to convert it to stored procedure also we are using transactions.. if no error occurs transaction commit otherwise it will rollback all commands... now what my question is how to execute all DML commands in a single sp.. MY idea is to Create a one sp inside that use try catch block and transaction... Inside BEGIN Try execute a another stored procedure... if error occurs rollback a nested stored procedure commands also.. it will work or not... Any suggestions pls welcome....
Posted

1 solution

yes it can be done...in SP...you can use both error handling and transactions
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900