1
對於某些用戶/大型事務,我看到超時錯誤。我不清楚它的含義:ADO連接超時
- 使用cnn.ConnectionTimeout vs cnn.CommandTimeout?
- 設置一個很長的超時週期
- 設置超時= 0(不確定?)
這裏是一個片段(有多長太長?):
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)
任何建議/注意事項??
謝謝!