By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,667 Members | 1,283 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,667 IT Pros & Developers. It's quick & easy.

Command TimeOut Data Access Application Block

P: n/a
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
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
You can try this

SqlCommand command = new SqlCommand();
command.CommandTimeout = 100;
Hope this help.

--
Tiki, C# Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.