0
我可以使用ODBC連接Windows桌面上的ms sql server,並在使用Linux時遇到了問題。 ODBC驅動程序已安裝,只是我無法連接。我在互聯網上搜索,大多數帖子都說這是windows身份驗證問題。我設置了Trusted_Connection=No
並在isql -v MSSQL [UID] [PWD]
中輸入了UID/PWD。Unix ODBC Connect 2016 MS SQL Server sql狀態28000本機錯誤18456
它給我的錯誤說:
[28000][unixODBC][Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Login failed for user 'UID'.
[ISQL]ERROR: Could not SQLConnect
的ODBC配置文件:
[[email protected] etc]# cat odbcinst.ini
[ODBC]
Trace = Yes
TraceFile = /tmp/trace.log
[ODBC Driver 13 for SQL Server]
Description=Microsoft ODBC Driver 13 for SQL Server
Driver=/opt/microsoft/msodbcsql/lib64/libmsodbcsql-13.0.so.1.0
UsageCount=3
[[email protected] etc]# cat odbc.ini
[MSSQL]
Driver=ODBC Driver 13 for SQL Server
Server=server_address
Database=master
AnsiNPW=Yes
QuotedId=Yes
AutoTranslate=Yes
Trusted_Connection=No
Encrypt=No