Can you have a nested transaction?
Answers were Sorted based on User's Feedback
Answer / brahma
Yes,
Begin transaction t1
update <Table_Name> set <col1>=<col1>+50
Begin Transaction t2
delete from <Table_Name> set <col1>=<col1>+100
commit Transaction t2
end transaction t1
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / visala
yes, we can have nested transactions. to know the nest
level use @@trancount
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / swapna
Yes, very much. Check out BEGIN TRAN, COMMIT, ROLLBACK,
SAVE TRAN and @@TRANCOUNT.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / ram&saran
It's possible, up to 32 levels of transaction in sql server2005.
begin tran t1
----statements
begin tran t2
----statments
.
.
commit tran t2
commit tran t1
| Is This Answer Correct ? | 1 Yes | 2 No |
1.Describe way(s) to tune the SQL table in order to optimize performance. 2. Explain SQL Injection and how can you prevent them?
Explain the collation?
what is the difference in login security modes between v6.5 and 7.0? : Sql server database administration
What are the different types of backup avaible in SQL SErver
How can I check if a view exists in a sql server database?
How can you hide the sql server instances?
What is collation sensitivity?
what is the difference between openrowset and openquery?
How to use old values to define new values in update statements in ms sql server?
Write a sql query to display the current date?
What is read committed?
how to find 6th highest salary
Oracle (3259)
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)