Hello. I can't find any information. I am a newbie in Python programming.
My question is: how to connect to OLEDB using connectionstring?
I try this on python 3.5
import adodbapi
import config
con_str = '“STRING”'.format(config.PATH_ACCDB)
....................
conn = adodbapi.connect(con_str)
cur = conn.cursor()
cur.execute("""select
{
....
And get the error: Traceback (most recent call last):
File "C:/.../PycharmProjects/repa/oledb.py", line 2, in <module>
import config
File "C:...\python\lib\site-packages\config.py", line 733
except Exception, e:
^
SyntaxError: invalid syntax
Is there is a way to connect to OLEDB through connectionstring?
Thank you!