I have the following code:
import psycopg2
conn_string = "dbname=ASCTP, user=TNET\user, password=password, host=ADHMSI-AR-5P, port=1433, sslmode=require"
conn = psycopg2.connect(conn_string)
I'm getting this error: OperationalError: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request.
That's all that I'm running in the cell. I'm wondering if there is something more that I need to add in order to keep this connection. Do I need an additional argument? I have my actual SQL SELECT statement in a following cell.