Good day all.
On Windows, the list of installed ODBC drivers located here: HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\ODBC Drivers
On macOS, the list of installed ODBC drivers located here: /Library/ODBC/odbcinst.ini and /Users/{userName}/ODBC/odbcinst.ini
The questions is: where could I find list of ODBC drivers installed in Linux?
To verify whether unixODBC is installed in the system, you can run the commands which odbcinst and which isql, which should return the path to the corresponding tools, or just run isql, which should print the syntax and available options for the isql utility.
To verify your driver version, connect to Snowflake through a client application that uses the driver and check the version. If the application supports executing SQL queries, you can call the CURRENT_CLIENT function.
Open the ODBC Data Source Administrator window by clicking on the Data Sources tab, followed by the ODBC Extension. You can verify the installation of a driver by clicking the Drivers tab and entering the SQL Server entry in the list of ODBC drivers. Where Are Odbc Drivers Installed Linux?
From the Start menu, go to ODBC Data Sources. Click the Drivers tab and then find the Simba SQL Server ODBC Driver in the list of ODBC drivers that are installed on your system. The version number is displayed in the Version column. How do I check my ODBC connection?
Might not have been as straightforward as we would have liked but you know what they say: a list of installed ODBC drivers is a list of installed ODBC drivers. (We’re not sure why they say that, but at least in this case it makes some sense.)
If you are unsure whether UnixODBC is installed in your system, you can simply run isql and odBCinst. These two commands should return the path to the tools’ corresponding paths, and you will also find how the syntax and options for isql are set. how do i know if odbc driver is installed? where are odbc drivers installed linux?
The nicest tool to deal with all configuration-type stuff of UnixODBC is odbcinst
.
From man page of odbcinst
.
odbcinst - An unixODBC tool for manipulating configuration files
It's a cool library that will ease your life a little while working in UnixODBC. One of its options:
-j Prints current configuration of unixODBC, listing (among others) the paths to the configuration files.
This is what you need.
E.g:
# odbcinst -j
unixODBC 2.3.6
DRIVERS............: /etc/odbcinst.ini
SYSTEM DATA SOURCES: /etc/odbc.ini
FILE DATA SOURCES..: /etc/ODBCDataSources
USER DATA SOURCES..: /root/.odbc.ini
SQLULEN Size.......: 8
SQLLEN Size........: 8
SQLSETPOSIROW Size.: 8
Install it:
apt-get install odbcinst
Thanks for the answers but I found out that list of installed ODBC drivers on Linux can be found on
/etc/odbcinst.ini and /home/{userName}/.odbcinst.ini which is very similar to macOS
below command works for me in Unix. It shows all the odbcinst.ini files
odbcinst -j
cat /proc/modules | grep odbc
or
lsmod | grep odbc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With