02.11.2021 · pyODBC uses the Microsoft ODBC driver for SQL Server. If your version of the ODBC driver is 17.1 or later, you can use the Azure Active Directory interactive mode of the ODBC driver through pyODBC. This interactive option works if Python and pyODBC permit the ODBC driver to display the dialog.
To connect Oracle® to Python, use pyodbc with the Oracle® ODBC Driver. ... pyodbc cursor object has no attribute fetchone It was created by Guido van Rossum ...
08.01.2019 · I have a problem, I have a web app that is using fast_executemany in order to insert into the database. When running it on localhost it works with no problem, but when deploying it to Azure, I get 'pyodbc.Cursor' object has no attribute 'fast_executemany' I am using. Python 2.7; AZURE SQL server DB; pyodbc==4.0.24; The web app is stored in Azure
06.08.2019 · 'pyodbc.Cursor' object has no attribute 'fast_executemany' -- Note: there was a typo in writing pyodbc version i wrote 2.0.22... instead of 4.0.22 The text was updated successfully, but these errors were encountered:
28.10.2020 · Photo by Nextvoyage from Pexels. I’ve been recently trying to load large datasets to a SQL Server database with Python. Usually, to speed up the inserts with pyodbc, I tend to use the feature cursor.fast_executemany = True which significantly speeds up the inserts. However, today I experienced a weird bug and started digging deeper into how fast_executemany really works.
31.01.2017 · AttributeError: 'psycopg2.extensions.cursor' object has no attribute 'fast_executemany' You are using psycopg2, which is a postgresql driver. This issue and fix pertain to Microsoft SQL Server using the pyodbc driver.
Explicitly encoding the string value as @veeology mentioned works for me, though I also need to change empty strings to None as @billmccord said — not really viable if you're hoping to preserve the distinction between empty strings and NULLs (I'm pushing data from a pyodbc MySQL cursor to a pyodbc SQL Server cursor).