Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
rameshwari
Starting Member
1 Post |
Posted - 2012-09-11 : 03:15:56
|
How can multiple user share one table at same time for transaction |
|
sunitabeck
Master Smack Fu Yak Hacker
5155 Posts |
Posted - 2012-09-11 : 07:19:53
|
It depends on what kind of locks are placed on the table (or rows). Take a look at this page which describes the lock compatibility: http://msdn.microsoft.com/en-us/library/ms186396(v=sql.105).aspxAs a simple example, if you are trying to select a row from a table two sessions with open transactions can select the data from the same row even if both selects are in open transactions. But, if you are trying to update that row, only one of the two sessions can update it and the other will have to wait until the first one commits or rolls back the transaction. |
 |
|
|
|
|