Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to call two stored procedure within the event of click on save button
currently, i am calling single stored procedure and and execution is successful.
i want to call another stored procedure too, in same event,
please let me know the best and safe idea of calling multiple stored procedure within single event.

please if possible give me demo code snippet

waiting for your kind help

regards
bunzitop
Posted

1 solution

You could repeat the same process one after the other for both stored procedures.

However if you were going to do this I would wrap them around a "Transaction" object so that if one fails it will roll back both the changes.
 
Share this answer
 
Comments
Zoltán Zörgő 12-Mar-13 10:52am    
Simple and correct. +5!
Pheonyx 12-Mar-13 10:54am    
Thanks :)

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