What's causing 'unable to connect to data source' for pyodbc?

前端 未结 13 2116
北荒
北荒 2020-12-28 14:34

I\'m trying to connect to an MSSQL database from python on Linux (SLES).

I have installed pyodbc and Free TDS. From the command line:

tsql -H server          


        
相关标签:
13条回答
  • 2020-12-28 15:36

    My problem was that on my settings file I was setting HOST to the SQL Server IP, however after hours of pulling my hair off I figured out that HOST has to be set to the Data Source Name []

    0 讨论(0)
提交回复
热议问题