I have a for loop in c++ parallelized using OpenMP. In the loop, I am accessing an sql server database. I have been told that if I share the same ODBC driver between threads, the data access would not be parallel. If I define different drivers for each iteration, it would be time consuming.(?) Is there a way to have different threads access the same data in a safe parallel manner?
PS: I am not writing to the database, just reading from it.