Skip to main content
Question

How to avoid error "Unable to execute commands until the DataReader is closed" in ADO.NET Driver

  • November 3, 2020
  • 0 replies
  • 5 views

joergschaber
Forum|alt.badge.img+2

Hi,
I am using an ADO.NET Vertica driver 9.2.1.2. Sometimes, during insert-statements I get an error "Unable to execute commands until the DataReader is closed". I read that this can in principle be circumvented by activating Multiple Active Result Sets (MARS). However, this only possible in jdbc driver it seems. Any idea for a workound?
Thanks, Jordi