db.echo = False
return db

def main():
    global DBCONN
connect_string = (
    """DRIVER={FreeTDS};SERVER=<server name>;PORT=<port num>;DATABASE=<db>;UID=<user>;PWD=<password>;TDS_Version=<version num>;"""
    )
connect_string = (
    """DRIVER={SQL Server};SERVER=<server name>;PORT=<port num>;DATABASE=<db>;UID=<user>;PWD=<password>;"""
    )
DBCONN = sqlalchemy_connect(connect_string)
if __name__ == '__main__':
    main()
Проблема с подключением к SQL-серверу с помощью python