- , . , .
, , .
, VBA ADODB - 60 :
Dim cn As ADODB.Connection
Set cn = new ADODB.Connection
cn.CommandTimeout = 60
As Shane pointed out above, you can also set it in the connection string.
I think you can set it to 0, so it will never time out, but this is not recommended, because it means the server freezes or you lose the connection to the database, your application will wait forever.
source
share