I have a C++ program that accesses SQL database using ADO.
Everything runs fine on the manual test but when I do a stress test after running for while I get the "out of database connections" in my logs.
I checked into my code and found that the SQL statement execution command returns a "0x80040e37" error.
I read that this could be related to CA certifications etc. but my question is how does this work when I do manual tests and why does it run fine for a while on stress test and then start throwing these errors.

Please advice.