Can we use commit inside the trigger? If not then how can we save the transaction made by the trigger?
Answer / 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 |
What is 2 tier 3 tier architecture?
What is 3NF?
What do data architects do?
What is end user data?
Explain about the implementation of business logic in stored procedures?
Explain the benefits of running stored procedure on a database engine?
Can somebody helps me to arrange these into ascending order depending on their sizes: 1)OLTP 2)ODS 3)DWH 4)DATA MART
Explain about the return statement?
What is the difference between a user defined function and a stored procedure?
Where the procedures are stored in database?
Explain the truncate command? : sql server architect
Illustrate physical database architecture in brief? : sql server architect
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)