Query Timeout

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
 
A

Alex Feinman [MVP]

You need to be more specific. SQL query timeout? Web query (request)
timeout? User confirmation box timeout?
 
D

Darren Shaffer

you can set a timeout on the command object in ADO.NET.
cmd.CommandTimeout = 1800; // in seconds, 1800 = 30 minutes
 
D

David de Passos

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

IP 1
Running Program 8
TextBox 2
DataGrid Collumn/Cell Color 1
DataGrid 2 1
Regional Settings 4
DataGrid 2
Tabcontrol 3

Top