Professional Web Applications Themes

Why can't I use the ROLLBACK command? - Microsoft SQL / MS SQL Server

Hi folks, When we do an UPDATE on one of our tables (say TableA) through Query yzer(QA) it will not give us a chance to roll back the transaction (even though our IMPLICIT_TRANSACTIONS is set to ON). We get a message "The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION". On the same connection we are able to Update other tables (using QA) in the same database and be able to ROLLBACK successfully. What is different about this table TableA that we can't use ROLLBACK command? Thanks, Suresh Kumar...

  1. #1

    Default Why can't I use the ROLLBACK command?

    Hi folks,
    When we do an UPDATE on one of our tables (say TableA) through Query
    yzer(QA) it will not give us a chance to roll back the transaction (even
    though our IMPLICIT_TRANSACTIONS is set to ON).

    We get a message "The ROLLBACK TRANSACTION request has no corresponding
    BEGIN TRANSACTION".

    On the same connection we are able to Update other tables (using QA) in the
    same database and be able to ROLLBACK successfully.

    What is different about this table TableA that we can't use ROLLBACK
    command?

    Thanks,
    Suresh Kumar


    Suresh Guest

  2. #2

    Default Re: Why can't I use the ROLLBACK command?

    Set IMPLICIT_TRANSACTIONS to OFF and use:

    BEGIN TRAN

    UPDATE MyTable ...

    ROLLBACK TRAN

    --
    Tom

    ---------------------------------------------------------------
    Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
    SQL Server MVP
    Columnist, SQL Server Professional
    Toronto, ON Canada
    www.pinnaclepublishing.com/sql


    "Suresh Kumar" <skumatATpcdiDOTcom> wrote in message news:phx.gbl...
    Hi folks,
    When we do an UPDATE on one of our tables (say TableA) through Query
    yzer(QA) it will not give us a chance to roll back the transaction (even
    though our IMPLICIT_TRANSACTIONS is set to ON).

    We get a message "The ROLLBACK TRANSACTION request has no corresponding
    BEGIN TRANSACTION".

    On the same connection we are able to Update other tables (using QA) in the
    same database and be able to ROLLBACK successfully.

    What is different about this table TableA that we can't use ROLLBACK
    command?

    Thanks,
    Suresh Kumar



    Tom Guest

  3. #3

    Default Re: Why can't I use the ROLLBACK command?

    Never Mind... Just found the problem...
    There was a COMMIT in the trigger and hence could not ROLBACK back.
    Everything is fine once we take out the COMMIT line from the trigger.
    Thanks for your help..


    "Jacco Schalkwijk" <co.uk> wrote in message
    news:phx.gbl... 
    in 
    > (even 
    > the 
    >
    >[/ref]


    Suresh Guest

Similar Threads

  1. Rollback
    By jcroentgen in forum Macromedia Contribute General Discussion
    Replies: 3
    Last Post: November 3rd, 04:36 AM
  2. Rollback pages
    By Dobies in forum Macromedia Contribute Connection Administrtion
    Replies: 0
    Last Post: June 25th, 04:01 PM
  3. Can't rollback
    By dee32 in forum Macromedia Contribute General Discussion
    Replies: 0
    Last Post: June 23rd, 01:34 AM
  4. Rollback 7.0.2 to 7.0.1
    By Diacritical in forum Coldfusion Server Administration
    Replies: 9
    Last Post: August 29th, 08:31 PM
  5. HELP - Rollback
    By Jeffdag in forum Macromedia Contribute General Discussion
    Replies: 2
    Last Post: April 14th, 04:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139