Solved

Implicit Transactions

Posted on 2010-08-14
3
774 Views
Last Modified: 2012-05-10
Hi experts, what is the appropriate setting to work with implicit transactions?
0
Comment
Question by:enrique_aeo
  • 2
3 Comments
 
LVL 3

Expert Comment

by:man2002ua
ID: 33435960
What do you mean by "appropriate settings"?
Just call "SET IMPLICIT_TRANSACTIONS ON"
and don't forget to commit your work. This mode is similar to Oracle default behaviour.
0
 

Author Comment

by:enrique_aeo
ID: 33435996
sorry, wrong question. scenarios in which I use
0
 
LVL 3

Accepted Solution

by:
man2002ua earned 250 total points
ID: 33436048
Understood, this mode is mostly used for Oracle developers, who switching to MSSQL.
In this mode any DDL, DML will start one transaction (untill next COMMIT). The default setting for MSSQL server - each DDL/DML use single transaction.
Exmaple:
-- default mode
delete from tableA;
go
delete from tableB;
go
-- all changes already in DB.
Here you dont need to commit, MSSQL did it for you.
but for:
set implicit_transaction on
go
delete from tableA;
go
delete from tableB;
go
-- at this point you can call rollback and rollback changed
-- or commit to save cahnges
commit
go
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now