Pyodbc: Login Timeout Error

前端 未结 2 1761
广开言路
广开言路 2020-12-20 12:35

I am trying to connect to MS SQL Server using pyodbc from a remote machine running Ubuntu 16.04.

import pyodbc 

conn = pyodbc.connect(r\'DRIVER         


        
2条回答
  •  独厮守ぢ
    2020-12-20 13:25

    Microsoft's ODBC drivers for SQL Server do not use a PORT= parameter. The port number, if any, is appended to the server name/IP with a comma, e.g.,

    SERVER=xxxTest-SRV,51333;
    

提交回复
热议问题