

The ODBC driver for PostgreSQL, MariaDB, Microsoft SQL Server and SQLite is available for installation using the APT repository. PostgreSQL, MariaDB, Microsoft SQL Server and SQLite

There are a ton of commercial and non-commercial ODBC drivers for each DBMS that you can choose and different ways to install these drivers. ODBC drivers link an application to a DBMS and provide an API to execute SQL statements into database. The instructions in the next section will install in many DBMS ODBC drivers. Type the following command to install the module in you Python environment: pip install pyodbcĪfter installing all tools to use ODBC in Python we need to install the DBMS drivers. This module implements the DB API 2.0 specification and provides a simple and fast way to create a connection and execute CRUD operations in a DBMS. The best choice to access a database using ODBC in Python is the pyodbc module. Type the command odbcinst -j to see the unixODBC config info. In this tutorial we are using Linux, first of all install the unixODBC package as follow: sudo apt update sudo apt install -y unixodbc-dev unixodbc UnixODBC is an open-source project that implements the ODBC API used on many different operating systems. to access the data from a common database management system (DBMS) or cloud application.

ODBC drivers allow external applications like Microsoft Excel, Power BI, or any application developed by programming languages like PHP, Python, etc. Open Database Connectivity or just ODBC is an open standard API Created and maintained by Microsoft since 1992 for applications to access information in different data sources. It also includes instructions to install unixODBC and many DBMS drivers ODBC on Linux. This article explains how to use pyodbc in your Python application.
