user typed "begin transaction" and went home

  • Good Morning Experts,

    A user typed "begin transaction" and went home. Will this have any affect on the log file(.ldf file). Will it cause any issues. Will it impact anything? Please let me know

  • coolchaitu - Saturday, April 21, 2018 11:10 AM

    Good Morning Experts,

    A user typed "begin transaction" and went home. Will this have any affect on the log file(.ldf file). Will it cause any issues. Will it impact anything? Please let me know

    Most likely, it'll affect your career for allowing users to have such access to the database. 😀

    The answer is a possible "yes" to all you've stated and more.  It depends on what they were actually doing within the transaction.  Things like this deserve a phone call to that person and their boss to find out if you can kill the SPID if it starts causing issues.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.
    "Change is inevitable... change for the better is not".

    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)
    Intro to Tally Tables and Functions

  • Did they run anything else when they did it as well? Running an INSERT statement afterwards and leaving it in situ is going to be more problematic than simply opening a query window with BEGIN TRANSACTION and nothing else.

    Like Jeff said though, this is definitely something that deserves a further conversation with the member of staff; they should understand the implications of their actions if they don't already (and if they do understand the implications, they why on earth did that do it?).

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • Thom A - Monday, April 23, 2018 2:24 AM

    Did they run anything else when they did it as well? Running an INSERT statement afterwards and leaving it in situ is going to be more problematic than simply opening a query window with BEGIN TRANSACTION and nothing else.

    Like Jeff said though, this is definitely something that deserves a further conversation with the member of staff; they should understand the implications of their actions if they don't already (and if they do understand the implications, they why on earth did that do it?).

    They simply opened a query window with BEGIN TRANSACTION and nothing else.

  • coolchaitu - Monday, April 23, 2018 2:33 AM

    Thom A - Monday, April 23, 2018 2:24 AM

    Did they run anything else when they did it as well? Running an INSERT statement afterwards and leaving it in situ is going to be more problematic than simply opening a query window with BEGIN TRANSACTION and nothing else.

    Like Jeff said though, this is definitely something that deserves a further conversation with the member of staff; they should understand the implications of their actions if they don't already (and if they do understand the implications, they why on earth did that do it?).

    They simply opened a query window with BEGIN TRANSACTION and nothing else.

    Did they actually *execute* that command?

    Thomas Rushton
    blog: https://thelonedba.wordpress.com

  • ThomasRushton - Monday, April 23, 2018 3:04 AM

    coolchaitu - Monday, April 23, 2018 2:33 AM

    Thom A - Monday, April 23, 2018 2:24 AM

    Did they run anything else when they did it as well? Running an INSERT statement afterwards and leaving it in situ is going to be more problematic than simply opening a query window with BEGIN TRANSACTION and nothing else.

    Like Jeff said though, this is definitely something that deserves a further conversation with the member of staff; they should understand the implications of their actions if they don't already (and if they do understand the implications, they why on earth did that do it?).

    They simply opened a query window with BEGIN TRANSACTION and nothing else.

    Did they actually *execute* that command?

    Yes sir

  • coolchaitu - Monday, April 23, 2018 4:45 AM

    ThomasRushton - Monday, April 23, 2018 3:04 AM

    coolchaitu - Monday, April 23, 2018 2:33 AM

    Thom A - Monday, April 23, 2018 2:24 AM

    Did they run anything else when they did it as well? Running an INSERT statement afterwards and leaving it in situ is going to be more problematic than simply opening a query window with BEGIN TRANSACTION and nothing else.

    Like Jeff said though, this is definitely something that deserves a further conversation with the member of staff; they should understand the implications of their actions if they don't already (and if they do understand the implications, they why on earth did that do it?).

    They simply opened a query window with BEGIN TRANSACTION and nothing else.

    Did they actually *execute* that command?

    Yes sir

    That probably didn't cause a problem because nothing was locked by that.  However, that's some pretty irresponsible action on the part of the user and they should either be seriously recalibrated or their privs should be taken away until they can demonstrate some responsibility.

    Ok... so you went through the whole weekend with this.... and I have some questions.
    1.  How did you find that the user did this and that nothing else was executed?
    2.  What actually happened to your system because of this?  I'm thinking that nothing different happened but I'd like to know your findings especially when it comes to the transaction log.
    3.  If the user only executed BEGIN TRANSACTION and then nothing else, why didn't you just kill their SPID to make sure?

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.
    "Change is inevitable... change for the better is not".

    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)
    Intro to Tally Tables and Functions

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply