Feb-21-2022, 07:07 PM
[quote="gmerritt" pid='153743' dateline='1645452287']
[quote="deanhystad" pid='153693' dateline='1645369513']
[quote="deanhystad" pid='153693' dateline='1645369513']
import pyodbc import pandas as pd from sqlalchemy import create_engine CONN = pyodbc.connect( "DRIVER={SQLite3 ODBC Driver};SERVER=localhost;DATABASE=C:\\Users\\DB\\Desktop\\CALLDB.db;Trusted_connection=yes") cnx = create_engine('sqlite:///CALLDB.db').connect() # table named 'CALL' will be returned as a dataframe. df = pd.read_sql_table('CALL', cnx) print(df)Thank you for the feedback on the syntax in the connection string. The above code works now.