OleDbException System Resources Exceeded

后端 未结 5 754
感动是毒
感动是毒 2020-12-11 04:07

The following code executes a simple insert command. If it is called 2,000 times consecutively (to insert 2,000 rows) an OleDbException with message = \"System Resources Ex

5条回答
  •  情歌与酒
    2020-12-11 04:46

    This could be occurring because you are not disposing the Connection and Command object created. Always Dispose the object at the end.

    OledbCommand.Dispose();
    

提交回复
热议问题