我在使用pywin32库并尝试连接到OLEDB时遇到问题。在
回溯
Traceback (most recent call last):
File "<input>", line 35, in <module>
File "<input>", line 31, in ado
File "<COMObject ADODB.Recordset>", line 4, in Open
the XML parser for analysis: the response Time for the XML for analysis request timed out before it was completed.', None, 0, -2147467259), None)
我试图将Connect Timeout=1000
添加到我的connectionstring
中,但没有成功。在
编码
^{pr2}$我认为问题在于:
h = rs.Open(strsql, conn,0,1)
我看不出哪些参数应该传递给'Open'。但我想它一定有超时参数。在
如何更改命令超时?在
通过添加以下内容来解决问题:
相关问题 更多 >
编程相关推荐