码迷,mamicode.com
首页 > 其他好文 > 详细

error 'there is already an open datareader associated with this command which must be closed first'

时间:2014-09-02 12:16:14      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:http   os   io   ar   art   cti   log   sp   on   

This can be easily solved by allowing MARS in your connection string. Add MultipleActiveResultSets=true to the provider part of your connection string (where Data Source, Initial Catalog, etc. are specified).

http://msdn.microsoft.com/en-us/library/h32h3abf(v=vs.100).aspx

error 'there is already an open datareader associated with this command which must be closed first'

标签:http   os   io   ar   art   cti   log   sp   on   

原文地址:http://www.cnblogs.com/xixifusigao/p/3951033.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!