SQL Connection in my FastApi code is intermittent
I have created a Fast API application for my job. This is hosted on a windows server. It’s wrapped as a windows service using pyWin32 and runs a FastAPI app using Uvicorn. This works. We have a snippet of code to connect to our MS server SQL DB, we do this using the Pyodbc library.