1. 现象
执行一个sql 语句的时候儿这个错误..代码韩式管理器黑头都是中个..
解决“当前命令发生了严重错误。应放弃任何可能产生的结果。”的问题
在从服务器接收结果时发生传输级错误。 (provider: 命名管道提供程序, error: 0 - 管道的另一端上无任何进程。)
当前命令发生了严重错误。应放弃任何可能产生的结果
常常还有conn 自动关闭的事情....socket close..
org.springframework.transaction.TransactionSystemException: Could not roll back Hibernate transaction; nested exception is org.hibernate.TransactionException: rollback failed
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Connection reset by peer: socket write error
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: 该连接已关闭。
org.springframework.transaction.TransactionSystemException: Could not commit Hibernate transaction; nested exception is org.hibernate.TransactionException: commit failed
作者:: 老哇的爪子 Attilax 艾龙
2.
估计是文章的长度太长导致的,于是查找到代码 db.AddInParameter(dbCommand, "Content", DbType.AnsiString, model.Content);
db.AddInParameter(dbCommand, "Content", DbType.String, model.Content);