Pyodbc error Data source name not found and no default driver specified paradox

Two thoughts on what to check: 1) Your connection string is wrong. There’s a way to get a known good connection string directly from the ODBC Administrator program (taken from http://www.visokio.com/kb/db/dsn-less-odbc). These instructions assume you’re using an MDB, but the same process will work for a paradox file On a typical client PC, open Control … Read more

to_sql pyodbc count field incorrect or syntax error

At the time this question was asked, pandas 0.23.0 had just been released. That version changed the default behaviour of .to_sql() from calling the DBAPI .executemany() method to constructing a table-value constructor (TVC) that would improve upload speed by inserting multiple rows with a single .execute() call of an INSERT statement. Unfortunately that approach often … Read more

Getting a warning when using a pyodbc Connection object with pandas

Is pyodbc becoming deprecated? No. For at least the last couple of years pandas’ documentation has clearly stated that it wants either a SQLAlchemy Connectable (i.e., an Engine or Connection object) or a SQLite DBAPI connection. (The switch-over to SQLAlchemy was almost universal, but they continued supporting SQLite connections for backwards compatibility.) People have been … Read more

Connect docker python to SQL server with pyodbc

Need to Run: sudo apt-get install gcc need to add a odbcinst.ini file containing: [FreeTDS]Description=FreeTDS Driver Driver=/usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so Setup=/usr/lib/x86_64-linux-gnu/odbc/libtdsS.so need to add folowing to docker file ADD odbcinst.ini /etc/odbcinst.ini RUN apt-get update RUN apt-get install -y tdsodbc unixodbc-dev RUN apt install unixodbc-bin -y RUN apt-get clean -y need to change connection in .py to connection = … Read more