Query Analyzer - Transaction

  • Hi Experts,

     

    I am getting the following message when i close the query analyzer window every time. But my co-worker didn't get any messge what i mentioned.

    ----------------------------------------------------------------

    There are Uncommitted Transaction.

    Do you want to commit these transactions before closing the window ?

    ------------------------------------------------------------------

     

    Inputs are welcome !

     

    Regards

    Karthik

     

    karthik

  • You've either specified a BEGIN TRANSACTION without doing a COMMIT/ROLLBACK, or you have SET IMPLICIT_TRANSACTIONS set to ON.

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • Thanks John.

    I have executed SET IMPLICIT_TRANSACTION ON statement. It is executing fine.

    Can you explain me the internal working structure of IMPLICIT_TRANSACTION ?

    Regards

    Karthik

     

    karthik

  • Did you read about SET IMPLICIT_TRANSACTION in BOL? I think it is described pretty well there. If you don't understand something from it, then it would be best to ask more specific questions.

  • Yes, I second what Vladan posted.  Read through BOL on not only that topic but on transactions in general and post any questions you come accross.  The default behavior for Query Analyzer is SET IMPLICIT_TRANSACTIONS OFF so you may also want to check to see why you have it ON and make a decision as to how you want to operate.

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

Viewing 5 posts - 1 through 4 (of 4 total)

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