Multiple users with access to a table in SQL Server 2005
If more than one user can put in a BEGIN TRAN statement, along with being able to update records, of the same table on SQL Server 2005, what will be the rollback results?

Software/Hardware used:
ASKED: September 30, 2008  5:33 PM
UPDATED: September 30, 2008  5:58 PM

Answer Wiki:
in general, operations made in a transaction cannot be seen by other users until the transaction is committed, and thus, when you rollback the transaction, the data other users see is not affected. Many users could open transactions on the same table, but they cannot modify the same data, because when a user modifies some record, the record gets locked, and the lock is released until the transaction is committed (or rolled back), so, many users can simultaneously modify data in the same table, but no the same data, and thus, when one of them rollback his transaction, only the changes made by him are rolled back, and since nobody else could have modified the same data, there is no conflict when rolling back, and the data remains integral.
Last Wiki Answer Submitted:  September 30, 2008  5:58 pm  by  carlosdl   63,535 pts.
All Answer Wiki Contributors:  carlosdl   63,535 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _