0
Is giving an error when I try to connect to SQL SERVER database with SQLALCHEMY
from sqlalchemy import create_engine, engine
import pandas as pd
engine = create_engine('mssql+pyodbc://User:password@server:1433/Bases_testes?drive=SQL+Server+Native+Client+11')
query = "SELECT * FROM dv_rating"
result = pd.read_sql(query,engine)
print(result)
and shows this error
sqlalchemy.exc.Interfaceerror: (pyodbc.Interfaceerror) ('IM002', '[IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (0) (Sqldriverconnect)') (Background on this error at: http://sqlalche.me/e/rvf5)
But I can’t find the error, I have already installed PYODBC and sql Native client and still can’t get the connection