Answers for "db connection string timeout"

0

db connection string timeout

result = None
with pyodbc.connect('DRIVER={SQL Server};SERVER=mydb;DATABASE=solarwinds;Trusted_Connection=True', timeout=1) as cnxn:
    cursor = cnxn.cursor()
    result = cursor.execute(query).fetchall()
Posted by: Guest on August-30-2021

Python Answers by Framework

Browse Popular Code Answers by Language