Nov-17-2019, 07:48 PM
hello, i am a rather beginner for programming, certainly to python.
i wrote a piece of code in python, helped myself by the numerous tutorials online
the piece of code is getting data from my sql server
it gets the data in via a cursor
within the cursor i am testing the data on several points
for 1 of the points i need to retrieve data from another table in the database
but when i am calling the database again from within the cursor i get following failure code:
what is a common routine to solve this problem?
things i've been thinking about:
-store the retrieved lines temporarely in another table ==> same problem
-store the retrieved lines in a CSV ==> looks not so neat in my opinion
-...
thanks for your help, directing me to a tutorial where everything is explained would be the most perfect outcome for this question
i wrote a piece of code in python, helped myself by the numerous tutorials online
the piece of code is getting data from my sql server
it gets the data in via a cursor
within the cursor i am testing the data on several points
for 1 of the points i need to retrieve data from another table in the database
but when i am calling the database again from within the cursor i get following failure code:
Error:connection-is-busy-with-results-for-another-hstmt
i am sure this is a common problem but cannot find help onlinewhat is a common routine to solve this problem?
things i've been thinking about:
-store the retrieved lines temporarely in another table ==> same problem
-store the retrieved lines in a CSV ==> looks not so neat in my opinion
-...
thanks for your help, directing me to a tutorial where everything is explained would be the most perfect outcome for this question