Multiple users with access to a table in SQL Server 2005

Tags:
SQL Server 2005
SQL Server administration
SQL Server tables
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?

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following