Last post Jun 27, 2014 03:41 AM by George Qiao
Jun 25, 2014 04:14 AM|subhrangshu|LINK
holpe all are doing well.
i have some problem in thread. within a button click event of a ASP web page i need to call 10 seperate function which are usually update 10 tables. i used trunsaction scope for avoiding inconsistency data updation. its working fine.
problem is when trying to retrive data from those tables sometimes it raise race condition and not able to generate report. my application is hosted on global server, this type of condition only raise when number of user is more than 100.
please help me out from this problem.
Thanks in advance.
Jun 26, 2014 04:43 AM|George Qiao|LINK
Thanks for your post.
Can you ensure this issue caused by updating 10 tables in thread?
If you update value in tables without thread, retrieve data from those tables will occur that issue?
Jun 26, 2014 08:33 AM|subhrangshu|LINK
actually i am using transaction scope in that button click, for that reason when some one accured this scope and utill commit trunsaction , in the mean time if some one try to access report, not able to get proper data, and some time it raise race condition.
Jun 27, 2014 03:41 AM|George Qiao|LINK
Thanks for your reply.
We suggest you add the some judgment statements in code to disable access report during transaction scope.