I was able to connect to SQL server previously, but now I am no longer able to connect.
The error is:
OperationalError: ('HYT00', '[HYT00] [Microsoft][ODBC SQL Server Driver]Login timeout expired (0) (SQLDriverConnect)')
My connection code:
conn = pyodbc.connect('Driver={SQL Server};'
'Server=DESKTOP-312E8EK;'
'Database=Stocks;'
'Trusted_Connection=yes;')