mkleehammer / pyodbc

Python ODBC bridge
https://github.com/mkleehammer/pyodbc/wiki
MIT No Attribution
2.88k stars 562 forks source link

Weird error with driver - Data source name not found and no default driver specified #1101

Closed marcelo-franceschini closed 1 year ago

marcelo-franceschini commented 1 year ago

Environment

Issue

Hello everyone :) I'm having this weird issue with my driver. I tried "everything". Reinstalled Python, ODBC, Driver e etc. Not sure what is wrong.

img

marcelo-franceschini commented 1 year ago

connection = pyodbc.connect( 'DRIVER={ODBC Driver 18 for SQL Server};' 'SERVER=localhost;' 'DATABASE=tcc;' 'UID=marcelo;' 'PWD=senhabanco;' 'TrustServerCertificate=yes' )