ADO CommandTimeout ਪ੍ਰਤੀਯੋਗਿਤਾ
ਪਰਿਭਾਸ਼ਾ ਅਤੇ ਵਰਤੋਂ
CommandTimeout ਪ੍ਰਤੀਯੋਗਿਤਾ ਸੈਟ ਜਾਂ ਵਾਪਸ ਕਮਾਂਡ ਚਲਾਉਣ ਦੌਰਾਨ ਟਰਮੀਨੇਸ਼ਨ ਪ੍ਰਯਤਨ ਅਤੇ ਗਲਤੀ ਪੈਦਾ ਹੋਣ ਤੋਂ ਪਹਿਲਾਂ ਰਾਹਤ ਦੀ ਸਮਾਂ ਸੈਕੰਡ ਸੂਚਿਤ ਕਰਦਾ ਹੈ।
ਸੈਟ ਜਾਂ ਵਾਪਸ ਲੰਬ ਮੁੱਲ ਵਾਲਾ ਜੋ ਕਿ ਕਮਾਂਡ ਲਾਗੂ ਹੋਣ ਦੀ ਸਮਾਂ ਸੈਕੰਡ ਸੂਚਿਤ ਕਰਦਾ ਹੈ।ਮੂਲ ਮੁੱਲ 30 ਹੈ।
ਗਰੰਥ
object.CommandTimeout
ਇੰਸਟੈਂਸ
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 %>
ਕੋਨੈਕਸ਼ਨ ਆਬਜੈਕਟ ਲਈ:
<% 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 %>