Hi guys,
I am getting the following error when trying to connect to my DB from Mac OS and Ubuntu using ODBC Driver 17 for SQL Server. I have tried FreeTDS and it is working. For some reason
cnxn = pyodbc.connect('DSN=TEST_DSN;UID='+username+';PWD='+ password)
pyodbc.InterfaceError: ('28000', "[28000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Login failed for user 'DOMAIN\USER'. (18456) (SQLDriverConnect)")
I get the same issue when using isql:
isql TEST_DSN DOMAIN\\USER **** -v
[28000][unixODBC][Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Login failed for user 'DOMAIN\USER'.
[ISQL]ERROR: Could not SQLConnect
Here is my configurations:
odbc.ini
[TEST_DSN]
Driver = ODBC Driver 17 for SQL Server
Server = MYSERVER
Database = MYDB
Port = 1433
odbcinst.ini
[ODBC Driver 17 for SQL Server]
Description=Microsoft ODBC Driver 17 for SQL Server
Driver=/usr/local/lib/libmsodbcsql.17.dylib
UsageCount=1
If I replace the line Driver=/usr/local/lib/libmsodbcsql.17.dylib to point to FreeTDS (Driver=/usr/local/lib/libtdsodbc.so) everything works fine.
Can you please point me to the issue here?
Regards,