原文:ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.

今天調試一個監控程序,放到環境里發現不寫庫,於是給SQL執行類異常事件做了個日志,發現報: ExecuteNonQuery requires an open and available Connection. The connection s current state is closed. 左看右看,沒問題呀,后來才想起,using里沒有執行db.Open,打開數據庫連接。 ...

2012-08-17 23:50 0 4125 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM