Command TimeOut Data Access Application Block

C

Craig Thompson

Does anyone know of a way to set the Command TimeOut when you are using the
DAAB? Am I going to have to modify DAAB code to accept a new parameter?...
BTW, setting the connection timeout in the connection string doesn't help my
problem.

Thanks,
Craig
 
T

Tiki Wan

You can try this

SqlCommand command = new SqlCommand();
command.CommandTimeout = 100;


Hope this help.
 

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

Top