Friday, February 29, 2008

Exception เกี่ยวกับสถานะ SQLDataReader C#

Exception :

# There is already an open DataReader associated with this Command which must be closed first.

# แก้ไขโดยเพิ่มเนี๋ย MultipleActiveResultSets=True ลงไปใน connection string

"Data Source = [host]; Initial Catalog = [dbname] ; User ID [usersql]= ;Password = [pwd]; MultipleActiveResultSets=True";

No comments:

Post a Comment

Popular Posts