ReadCommited with OLEDB (MS SQL)
Posted: Tue 24 Aug 2010 17:28
What would be best approach to control let other user can read while records are updated in other transaction ?
Example: test_table
RecKey value
1 AA
2 BB
3 CC
When user A run start transaction and
run sql as update test_table set value 'DD' where reckey =3
Until user A issues commit transaction,
All other users trying to access this table gets hang when
it tries to access Reckey 3.
Is it possible let other user can read while records are in updating
transaction not commited yet ?
Currently I get hangs after RecKey 2 fetched and waiting infinitely
until user A commited or rolled back.
Example: test_table
RecKey value
1 AA
2 BB
3 CC
When user A run start transaction and
run sql as update test_table set value 'DD' where reckey =3
Until user A issues commit transaction,
All other users trying to access this table gets hang when
it tries to access Reckey 3.
Is it possible let other user can read while records are in updating
transaction not commited yet ?
Currently I get hangs after RecKey 2 fetched and waiting infinitely
until user A commited or rolled back.