Test ODBC entry on Unix

Diego picture Diego · Mar 30, 2012 · Viewed 38.5k times · Source

Does anyone know a way of testing if an odbc entry on the odbc.ini file is configured correctly?

I would like to know if my linux server is able to connect to my SQL Server using an ODBC entry I configured.

Answer

bohica picture bohica · Mar 30, 2012

If you are using unixODBC as the ODBC driver manager then just do:

isql -v mydsn myusername mypassword