ADO CommandTimeout Property
Definition and Usage
The CommandTimeout property can set or return the time to wait before terminating the attempt and generating an error during command execution.
Set or return a Long value that indicates the number of seconds to wait for the command to execute. The default value is 30.
Sintaksis
object.CommandTimeout
Sample
Para sa Objek ng Command:
<% set conn=Server.CreateObject("ADODB.Connection") conn.Provider="Microsoft.Jet.OLEDB.4.0" conn.Open "c:/webdata/northwind.mdb" set comm=Server.CreateObject("ADODB.Command") comm.CommandTimeout=10 response.write(comm.CommandTimeout) conn.close %>
Para sa Objek ng Connection:
<% set conn=Server.CreateObject("ADODB.Connection") conn.Provider="Microsoft.Jet.OLEDB.4.0" conn.Open "c:/webdata/northwind.mdb" conn.CommandTimeout=10 response.write(conn.CommandTimeout) conn.close %>