摘要: 事务处理用到TransactionScope,调试提示错误“事务已被隐式或显式提交,或已终止”。看了一篇文章"ConnectString中enlist设置的含义",后来给连接字符串加了"Enlist=false"。问题就这样解决了。 ConnectionString = "Data Source=192.168.1.1;Initial Catalog=cargoplus;Enlist=false;Persist Security Info=True;User ID=sa;Password=sa"注释:SqlConnection.Con 阅读全文
posted @ 2011-12-08 11:10 Byrd 阅读(1111) 评论(0) 推荐(0)