I am getting the following error;
"There is already an open DataReader associated with this Command which must be closed first."
is it because I have used the reader in foreach loop ? or what the problem might be ? Regards BK
foreach( Apple a in listApple )
{
....
using (SmartSqlReader reader = Db.CurrentDb.ExecuteReader(sp))
{
while (reader.Read())
{
a.blablabla += reader.GetInt32("BLA_BLA_BLA");
}
}
.....
}