Hi,
We have recently migrated from SQL 2005 -> SQL 2008 R2 and are facing issue with transactions getting rolled back on its own. When the SQL queries are getting processed from .net code, there are some DataReaders used to perform selects from database. In code [ legacy code], these data readers were kept OPEN and not closed explicitly. [.net 2.0]. This thing was not giving any issue with SQL 2005 and transactions were getting committed without any problem.
However, when we migrated to 2008 R2, the transactions are getting aborted abruptly. So, we figured it's because of the open datareaders. When we closed these, the problem got solved. However, there are few instances where transactions are still getting aborted.
Are there any fixes / patches rolled out for this? Please note that this issue was not happening with 2005 SQL. We have also checked MSDTC settings on both APP and SQL server and these look good.
Please help!