https://bugs.winehq.org/show_bug.cgi?id=44011
--- Comment #8 from Fabian Maurer dark.shadow4@web.de ---
Is your server in the same network? I suspect there's a race condition here, and the bug is not triggered when network latency is low enough.
This might be the reason, I'm running both the sql server and the test on the same machine.