Odbc Postgres Driver [exclusive]

To connect, you must define a Data Source Name (DSN). There are two types:

You must then register the driver in your odbcinst.ini file (usually located in /etc/ ) if the package manager did not do so automatically. odbc postgres driver

conn = pyodbc.connect(conn_str) cursor = conn.cursor() To connect, you must define a Data Source Name (DSN)

IM002: [Microsoft][ODBC Driver Manager] Data source name not found odbc postgres driver

$conn.Close()