Closed Atul997 closed 1 year ago
Does isql -v -k '<your connection string here>'
work to connect?
What should I put at connection string and run ?
The same connection string that you would give pyODBC.
This shows me following error
[S1000][Simba][ODBC] (11560) Unable to locate SQLGetPrivateProfileString function: [Simba][DSI] An error occurred while attempting to retrieve the error message for key 'LibsLoadErr' with message parameters ['"", "/usr/local/Cellar/unixodbc/2.3.9/lib/libodbcinst.dylib"'] and component ID 3: Message not found in file "/opt/simba/spark/ErrorMessages/en-US/ODBCMessages.xml" [ISQL]ERROR: Could not SQLDriverConnect
You'll need to get the ODBC driver working before you can use pyODBC. That error message suggests it's related to unixODBC, so try a newer version of it, and if that doesn't work, you can ask here: https://github.com/lurcher/unixODBC/issues
In any case this doesn't appear to be a pyODBC issue.
odbcinst -j
reports
unixODBC 2.3.6
but the error from isql
shows the path
/usr/local/Cellar/unixodbc/2.3.9/lib/libodbcinst.dylib
so it looks like the unixODBC setup is incorrect.
I am following the below link to configure data bricks with SQL - configure data bricks
I am getting the following error -
pyodbc.OperationalError: ('08001', '[08001] [Simba][ODBC] (10380) Unable to establish connection with data source. Missing settings: {[Host]} (10380) (SQLDriverConnect)')
Python version - Python 3.8.10 Pyodbc - 4.0.39 driver- ODBC
Output for
odbcinst -j
/etc/odbc.ini looks like
/etc/odbcinst.ini looks like