adspace
Can we use commit inside the trigger? If not then how can we save the transaction made by the trigger?
Answer Posted / Chandan Kumar Paswan
No, you cannot use COMMIT or ROLLBACK within a trigger. To save the transaction made by a trigger, you must include the trigger in a single transaction with other statements that need to be committed together. In SQL Server, you can use the SAVE TRANSACTION command inside a trigger and then commit the transaction from another stored procedure.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers