对于一些用户来说,我看到了一个超时错误,w/大事务。我不清楚以下所涉及的问题:
下面是一个片段:
Set cnn = New ADODB.Connection
'cnn.ConnectionTimeout = 30
'cnn.CommandTimeout = 30
cnn.CursorLocation = adUseClient
cnn.ConnectionString = "driver={SQL Server}; server=" & myIP & ";Trusted_Connection=no;Database=" & myDatabase & ";UID= " & myUser & ";PWD= " & myPass & "
cnn.Open
strSQL = "uspDeleteAreaCommon @InvID = '" & myInvID & "';"
Set rs = cnn.Execute(strSQL)有什么建议/警告吗?
谢谢!
发布于 2014-03-05 15:40:20
没有回复。
我使用了cnn.CommandTimeout =0(无限超时?)
虽然我还不清楚这种情况的含义.
https://stackoverflow.com/questions/22149046
复制相似问题