I made the following script to handle the connection to the database and to be able to execute stored procedures.
Procedures that simply return data behave correctly.
In stored procedures that perform inserts, it was found that even if .execute is only called once, executing the stored procedure call multiple times will result in multiple inserts. I know that it is called several times because with the getdate() that I insert I can see that there are multiple equal inserts with dates very close together.
I don't know how I can fix or control this. I haven't found anyone that has.
Environment
Issue
I made the following script to handle the connection to the database and to be able to execute stored procedures.
Procedures that simply return data behave correctly.
In stored procedures that perform inserts, it was found that even if .execute is only called once, executing the stored procedure call multiple times will result in multiple inserts. I know that it is called several times because with the getdate() that I insert I can see that there are multiple equal inserts with dates very close together.
I don't know how I can fix or control this. I haven't found anyone that has.
Thanks.
CODE
import pyodbc
class SQLManagmentConnection: