Can you have a nested transaction?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between a primary key and a unique key.

791


What is the default port for SQL Server over a firewall?

783


Can I use sql azure as a backup with log shipping or database mirroring?

148


What is the difference between delete and truncate statements?

746


What is subquery explain with example?

796






What is a trace frag? Where do we use it?

832


What is user-defined multi-statement table-valued function?

827


What are the basic functions for master, msdb, model, tempdb databases?

784


Explain use of expression builder.

739


What is the difference between inner join and equi join?

680


When is the use of update_statistics command?

736


Explain the difference between clustered and non-clustered index?

686


What are different types of raid configurations? : SQL Server Architecture

730


How to compare the top two records using sql?

957


What is scheduled job and how to create it?

725