w3pop.com :: 网络学院 :: ADO :: ADO ConnectionTimeout 属性
The ConnectionTimeout property sets or returns the number of seconds to wait for a connection to open, before canceling the attempt and generate an error. Default is 15 seconds.
ConnectionTimeout属性的作用是:在取消尝试或出错之前设置或返回等待一个连接打开的时间(单位:秒)。默认值为15(秒)。
objconn.ConnectionTimeout |
<%
set conn=Server.CreateObject("ADODB.Connection")
conn.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0"
conn.ConnectionTimeout=30
conn.open server.mappath("database.mdb")
conn.close %> |
评论 (0)
All