Mega Code Archive

 
Categories / Delphi / ADO Database
 

Error general sql error connection does not exist in threaded application

Question: I tried to do some DB updates in a thread. I ran into the following error : "General SQL Error : Connection does not exist". When I run the code outside the thread I have no problems at all. How can I fix this? Answer: You must have a Session in each thread.