Geeks Talk

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.

Query on Set Transaction

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 ...

Go Back   Geeks Talk > Databases > SQL Server
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

SQL Server SQL Server is a Database Management System(DBMS) by Microsoft

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-16-2009
Junior Member
 
Join Date: Sep 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
anvkc is on a distinguished road
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.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 1 Week Ago
Expert Member
 
Join Date: Apr 2007
Location: Bangalore
Posts: 518
Thanks: 30
Thanked 63 Times in 61 Posts
susarlasireesha will become famous soon enough
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
Reply With Quote
Reply

  Geeks Talk > Databases > SQL Server

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


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


All times are GMT -4. The time now is 03:44 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved