Query Timeout

  • Thread starter Thread starter David de Passos
  • Start date Start date
D

David de Passos

How Can Set a Query Timeout and Catch the error when the time elapsed.

--


Cumprimentos,
David de Passos
--------------------------------------------------------------
RCSOFT, Lda.
E-Mail: (e-mail address removed)
Móvel: +351 966931639
Telefone: +351 239708708
Fax: +351 239708701
Tel. Directo: +351 239708705 ext. 401
 
You need to be more specific. SQL query timeout? Web query (request)
timeout? User confirmation box timeout?
 
you can set a timeout on the command object in ADO.NET.
cmd.CommandTimeout = 1800; // in seconds, 1800 = 30 minutes
 
CommandTimeout works well
thanks


Darren Shaffer said:
you can set a timeout on the command object in ADO.NET.
cmd.CommandTimeout = 1800; // in seconds, 1800 = 30 minutes
 
Back
Top