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

Can group by and orderby be used together?

680


What are the new features in SQL Server 2005 when compared to SQL Server 2000?

730


Explain comment on transactions?

642


how do you implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql server database administration

669


What are “lock” hints?

679






Write a SQL query to delete a table?

746


What are the types of processing and explain each? : sql server analysis services, ssas

807


create index myindex on mytable(mycolumn) what type of index will get created after executing the above statement? : Sql server database administration

598


Where can you add custom error messages to sql server?

662


What are rest-style architecture's?

155


What is the sql case statement used for? Explain with an example?

626


How to delete duplicate rows in sql server?

660


What stored by the model? : sql server database administration

625


How to connect of datebase with sql express.?

731


How to return the top 5 rows from a select query in ms sql server?

684