如何在pywin32中更改命令超时。'开放式方法

2024-09-28 01:33:55 发布

您现在位置:Python中文网/ 问答频道 /正文

我在使用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'。但我想它一定有超时参数。在

如何更改命令超时?在


Tags: theinnonemostforinput参数line

热门问题