Re: ROLLBACK a transaction

From: Toby Herring (therring*_at_*teletrack.com)
Date: 08/27/04


Date: Fri, 27 Aug 2004 11:15:45 -0400

Not really. That's the whole point to transactions.

An alternative might be to use READPAST, in which case you could still
execute your select query, but it would ignore all non-committed records as
though they didn't exist.

-- 
Toby Herring
MCDBA, MCSD, MCP+SB
Need a Second Life? 
http://secondlife.com/ss/?u=03e0e5b303c234bf08e80ee40119a65e
"Jeannick" <Jeannick@discussions.microsoft.com> wrote in message 
news:7C21FBC6-072D-4B85-8B9E-2680EBBF7E61@microsoft.com...
> 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

  • ROLLBACK a transaction
    ... >I'm reading records from one database to another ... >goes wrong i'm doing a rollback. ... locked untill the ... >Is there a solution for this whitout changing the select ...
    (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)