A Database was created in SqliteStudio 3.3.3 and is working 100,000 +/- records.
The following python connection string fails :
Error message:
Is pyodbc able to connect to SQLiteStudio database ?
Thank you for your comments.
The following python connection string fails :
1 2 3 4 |
import pyodbc con = pyodbc.connect( "DRIVER={SQLite3 ODBC Driver};SERVER=localhost;Database=C:\Users\GM\CALL_SIGN_DATABASE1.db;Trusted_connection=yes" ) |
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.
Larz60+ write Feb-20-2022, 12:07 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Fixed for you this time. Please use BBcode tags on future posts.
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Fixed for you this time. Please use BBcode tags on future posts.