Solved

Transactions in Sql Server stored procedures

Posted on 2014-10-15
3
150 Views
Last Modified: 2014-10-15
I know we have in transactions the following  statements

BEGIN Transaction

COMMIT
ROLLBACK

Do we have an END TRANSACTION statement?
I don't think so but I just to make sure there isn't any such statement
0
Comment
Question by:metro156
3 Comments
 
LVL 75

Assisted Solution

by:Aneesh Retnakaran
Aneesh Retnakaran earned 250 total points
ID: 40383254
>END TRANSACTION statement?  I
No ...
just commit and rollback
0
 

Author Comment

by:metro156
ID: 40383267
So you are saying the COMMIT or Rollback will always end the transaction???
0
 
LVL 65

Accepted Solution

by:
Jim Horn earned 250 total points
ID: 40383501
Yes.  COMMIT ends it by executing it, and ROLLBACK ends it by killing all actions between BEGIN and ROLLBACK.
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

929 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

17 Experts available now in Live!

Get 1:1 Help Now