Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Query on Set Transaction within the SQL Server forums, part of the Databases category; I have a query on set transaction. Set transaction 3; delete emp; delete dept where deptno = 30; rollback; update ename = 'krishna' emp where ename = 'smith'; can anyone ...
|
|||||||
| SQL Server SQL Server is a Database Management System(DBMS) by Microsoft |
![]() |
| LinkBack | Thread Tools | Display Modes |
|
|||
|
Query on Set Transaction
I have a query on set transaction. Set transaction 3; delete emp; delete dept where deptno = 30; rollback; update ename = 'krishna' emp where ename = 'smith'; can anyone explain the sequence of processing of above statements. After 2 delete statements i made rollback, whether update statement will be the first query or the third query. With regards, chaitanya.
|
| Sponsored Links |
|
|||
|
Re: Query on Set Transaction
In first transaction,data was delete from emp,
second transaction--deptno 30 data was deleted from dept table but u made rollback statement ,so above transactions are roll backed to the last commit point. then third statement -- update ename smith to krishna then fire comment , commit the last transaction changes.
__________________
Sireesha |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IL01 transaction | b_geetha04 | SAP R/3 | 1 | 3 Weeks Ago 06:36 AM |
| Cannot start transaction | praveen_xpress | LoadRunner | 1 | 08-10-2009 02:28 PM |
| autonomous transaction | subharaji | Oracle | 3 | 02-24-2009 12:51 PM |
| How to view Stopped transaction in Transaction summary graph | pictesting | LoadRunner | 0 | 02-02-2009 08:52 AM |
| Proceeding to next transaction | JobHelper | QTP | 1 | 01-17-2007 09:54 AM |