Can you have a nested transaction?

Answers were Sorted based on User's Feedback



Can you have a nested transaction?..

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

Can you have a nested transaction?..

Answer / visala

yes, we can have nested transactions. to know the nest
level use @@trancount

Is This Answer Correct ?    3 Yes 1 No

Can you have a nested transaction?..

Answer / swapna

Yes, very much. Check out BEGIN TRAN, COMMIT, ROLLBACK,
SAVE TRAN and @@TRANCOUNT.

Is This Answer Correct ?    1 Yes 1 No

Can you have a nested transaction?..

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

Post New Answer

More SQL Server Interview Questions

How to copy the tables, schema and views from one sql server to another?

0 Answers  


Are all views updatable ?

0 Answers   MCN Solutions,


What does top operator do?

0 Answers  


Can you explain the types of Joins that we can have with Sql Server?

2 Answers  


Give main differences between "Truncate" and "Delete".

0 Answers   HCL,






what is the Ticketing tool used in Wipro technologies at Bangalore...???

0 Answers   Liquid Hub,


What are dml (data manipulation language) statements in ms sql server?

0 Answers  


How do you rebuild an identity column?

0 Answers  


Explain error handling in ssis?

0 Answers  


Mention the differences between local and global temporary tables.

0 Answers  


Explain a join?

0 Answers  


Can we take the full database backup in log shipping?

0 Answers  


Categories