Feb-20-2022, 12:34 AM
A Database was created in SqliteStudio 3.3.3 and is working 100,000 +/- records.
The following python connection string fails :
Is pyodbc able to connect to SQLiteStudio database ?
Thank you for your comments.
The following python connection string fails :
import pyodbc con = pyodbc.connect( "DRIVER={SQLite3 ODBC Driver};SERVER=localhost;Database=C:\Users\GM\CALL_SIGN_DATABASE1.db;Trusted_connection=yes")Error message:
Error: File "C:\Users\Garth Merritt\PycharmProjects\main\SQL.py", line 5
"DRIVER={SQLite3 ODBC Driver};SERVER=localhost;Database=C:\Users\GM\CALL_SIGN_DATABASE1.db;Trusted_connection=yes")
^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 57-58: truncated \UXXXXXXXX escape
Is there an error in the connection string ?Is pyodbc able to connect to SQLiteStudio database ?
Thank you for your comments.