I am trying to connect to a Microsoft SQL Server with the SQLite3 module.
Everything seems to be recognized, but for whatever reason it doesn't recognize my columns or tables.
import sqlite3
con = sqlite3.connect('V7.0.6_X2_857I.sql')
cur = con.cursor()
cur.execute("""SELECT * FROM TS857_5400""")
all = cur.fetchall()
print one
However, I am running into this error:
---------------------------------------------------------------------------
OperationalError Traceback (most recent call last)
<ipython-input-39-04a8789e04a7> in <module>()
3 con = sqlite3.connect('V7.0.6_X2_857I.sql')
4 cur = con.cursor()
----> 5 cur.execute("""SELECT * FROM TS857_5400""")
6 all = cur.fetchall()
7 print one
OperationalError: no such table: TS857_5400
I know for a fact that this table exists, so I am wondering if this is some issue with the declared connection string or a limitation of SQLite3 (with SQL Server).
Thank you in advance.