Hi,
I'm connecting to an Azure SQL DB remotely from a Windows 10 PC. I'm using Python 2.7 with the following connection string:
'DRIVER={ODBC Driver 17 for SQL Server};SERVER=server_name;PORT=1433; DATABASE=db_name;UID=user_id;PWD=user_password'
and with:
engine = sqlalchemy.create_engine(new_con, fast_executemany=True)
and I get this error if I try to write the whole 225 MB file:
OperationalError: (pyodbc.OperationalError) ('08S01', u'[08S01] [Microsoft][ODBC Driver 17 for SQL Server]TCP Provider: An existing connection was forcibly closed by the remote host.\r\n (10054) (SQLExecute); [08S01] [Microsoft][ODBC Driver 17 for SQL Server]Communication link failure (10054)')
[SQL: INSERT INTO ....
I can connect and write to the DB a portion of a file but when I try to write to whole file, I get this error after about 5 minutes every time. So it's not happening randomly.
Any suggestions?
Thanks.