I'm making NUNit-tests. I'm testing triggers. Triggeramount is around 200. I make a insert/update/delete-statement and afterwards a select-statement to see if the trigger has done his job. After every 9 or 10 trigger tests I get an error: Something like : "Attempted two active database requests".
Before every sqlstatement I tested if the previous request was done with :
"db_is_working". But this doesn't matter anything. If I put a Wait or Sleep after every sqlstatement i get less times an error. But still I'm getting errors. Can anyone help me? I execute around 3000 sqlstatements in total.