I have an MsSQL stored procedure which is getting executed by the command :
EXEC proc_CreateProblemTicket @CurrentDate='2020-03-08'.
Now I have a python django application where I need to call the stored proc and pass the dynamic date. In the above example, the date is hard coded but I would like this is to dynamic. Everyday when the stored proc gets executed, it should have current day.
cursor = conn1.cursor()
PBI_SP = """EXEC proc_CreateProblemTicket @CurrentDate=str(date.today())"""
conn1.commit()
cursor.execute(PBI_SP)
cursor.commit()