Python操作access数据库出错
使用Python进行Access数据库操作,报如下错:
Traceback (most recent call last):
File "access.py", line 4, in <module>
conn.Open(DSN)
File "<COMObject ADODB.Connection>", line 3, in Open
File "D:\Program Files\Python27\lib\site-packages\win32com\client\dynamic.py",
line 276, in _ApplyTypes_
result = self._oleobj_.InvokeTypes(*(dispid, LCID, wFlags, retType, argTypes) + args)
pywintypes.com_error: (-2147352567, '\xb7\xa2\xc9\xfa\xd2\xe2\xcd\xe2\xa1\xa3',(0, u'Microsoft JET Database Engine', u"\u4e0d\u80fd\u4f7f\u7528 ''\uff1b\u6587\u4ef6\u5df2\u5728\u4f7f\u7528\u4e2d\u3002", None, 5003045, -2147467259), None)
环境:
python版本:2.7.8
系统版本:win7 64bit
不知道出错原因,在线求各位帮忙解决,谢谢大家了。
不灵不灵宅
10 years ago