ROLLBACK a transaction

From: Peter The Spate (anonymous_at_discussions.microsoft.com)
Date: 08/27/04


Date: Fri, 27 Aug 2004 08:03:07 -0700

Have a look at Isolation Levels, and see which is the best
one for you.

Peter

"I may be drunk, Miss, but in the morning I will be sober
and you will still be ugly. "
Winston Churchill

>-----Original Message-----
>I'm reading records from one database to another
database, when something
>goes wrong i'm doing a rollback. We have to do a rollback
of all the records.
>Everything is going well, except that the records are
locked untill the
>commit.
>
>And when a record is locked we can't do a select in this
table whitout
>nolock.
>
>Table a with 100 records, 1 of these records is locked
>" select * from a " fails.
>
>Is there a solution for this whitout changing the select
to "......with
>(nolock)"
>
>Thanks in advance
>.
>



Relevant Pages

  • Re: ROLLBACK a transaction
    ... execute your select query, but it would ignore all non-committed records as ... > I'm reading records from one database to another database, ... We have to do a rollback of all the ... > Is there a solution for this whitout changing the select to "......with ...
    (microsoft.public.sqlserver.programming)
  • ROLLBACK a transaction
    ... I'm reading records from one database to another database, ... We have to do a rollback of all the records. ... nolock. ... Is there a solution for this whitout changing the select to "......with ...
    (microsoft.public.sqlserver.programming)
  • Re: Fast roll-back
    ... locked will stay locked until the entire rollback is complete. ... If the session is killed or the database is restarted (before ... This means that killing a session (or in your extreme case bouncing ... The Co-operative Oracle Users' FAQ ...
    (comp.databases.oracle.server)
  • Re: just wondering about MSKB 828481
    ... seems to depend on the database being in other than ... > rollback I'll be OK. ... SQL Server doesn't, AFAIK, offer any native method for unravelling ... Steve Foster [SBS MVP] ...
    (microsoft.public.windows.server.sbs)
  • Re: How to transactionally update a DB Schema?
    ... You can execute DDL as part of an explicit transaction so that you can ... rollback in the case of an error. ... database prior the upgrade and restore if an error is encountered. ...
    (microsoft.public.sqlserver.server)