ADO Connection Timeout problem

前端 未结 2 1048
-上瘾入骨i
-上瘾入骨i 2021-01-22 21:50

Using TADOConnection class to connect to SQL server 2005 db.

Having ConnectionTimeOut := 5; // seconds.

Trying to open the connection synchronously.

When

2条回答
  •  长情又很酷
    2021-01-22 22:30

    TADOConnection.ConnectionTimeout - Timeout in milliseconds to connect to data source TADOConnection.CommandTimeout - Timeout in milliseconds to execute command

    if you getting timeout error on trying to connect, increase value of ConnectionTimeout property, else if you getting an error on executing some query, - increase value of CommandTimeout property.

提交回复
热议问题