When trying to connect to the server/database I'm getting this error:
[Error: ('01000', "[01000] [unixODBC][Driver Manager]Can't open lib 'SQL Server' : file not found (0) (SQLDriverConnect)")]
In the company where I work, Python runs on a Unix computer that we connect to. The database server I'm trying to connect to is a Microsoft SQL Server RDBMS.
My end goal is to manipulate the data using Python in Jupyter notebook.
This is the code I'm using:
import pyodbc
cnxn = pyodbc.connect('DRIVER={SQL Server};SERVER=localhost;DATABASE=testdb;UID=me;PWD=pass')