It is giving an error when I try to connect to the 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)
Show 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: link )
But I can not find the error, I already tried PYODBC and sql native client and I still can not connect.