there is already an open datareader associated with this command-error
fn1:
SQL = "query"
reader = cmd.ExecuteReader()
If reader.Read() Then
' operation
reader.close()
end if
reader.close
fn:2
SQL = "query"
reader = cmd.ExecuteReader()
If reader.Read() Then
' operation
reader.close()
end if
reader.close

Manas MohapatraRank #182 · 13.2K reputationPosted Nov 18, 2016, 9:23 PM EST
Rajavel G97 reputationPosted Nov 18, 2016, 10:58 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Nov 18, 2016, 11:56 PM EST
Rajavel G97 reputationPosted Nov 19, 2016, 1:01 AM EST
Rajavel G97 reputationPosted Nov 19, 2016, 1:03 AM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Nov 19, 2016, 9:32 PM EST