日期:2014-05-20  浏览次数:20736 次

事务已被隐式或显式提交,或已终止。
我在连接局域网中的一台数据库的时候,出现了这样的异常。
“事务已被隐式或显式提交,或已终止”。
我之前在自己机器上的数据库上,没有问题。但连接别的数据上的时候,就出现了这样的异常。
数据库服务器的系统是win2k   +   sqlserver2000。
我的机器是winXP+vs2005
还请各位高手帮帮忙,我已经搞了好几天了。

------解决方案--------------------
1. Check the priviledge of the app that running this code. Is it a win-app, or asp.net, or COM+ component?
2. check the database connection by commenting off the first line. // using(TransactionScope scope = new TransactionScope())