Can't open lib 'ODBC Driver 13 for SQL Server'? Sym linking issue?

前端 未结 9 1428
无人共我
无人共我 2020-11-27 12:20

When I try to connect to a sql server database with pyodbc (on mac):

import pyodbc

server = \'####\'
database = \'####\'
username = \'####@####\'
password =         


        
9条回答
  •  野性不改
    2020-11-27 12:56

    In my case, I had to change the pyodbc database driver string to
    driver='{ODBC Driver 17 for SQL Server}'

    actually, in my python code pyodbc was expecting ODBC Driver 13 but, as the ODBC Driver version was updated (because of ubuntu update) to current version ODBC Driver 17, the problem had occurred.

提交回复
热议问题