At the beginning of my process, I connect to a SQL Server database
conn = psycopg2.connect(dbname=dbn, user=user, password=pwd, host=host, port=port) <
conn = psycopg2.connect(dbname=dbn, user=user, password=pwd, host=host, port=port)