DevPinoy.org
A Filipino Developers Community

>>> First two to make 3 wins! <<<

CommandTimeout vs ConnectionTimeout

ConnectionTimeout is the one specified in your connection string and it is the time it takes for a connection.Open() invocation to wait until it gets a connection reference from the connection pool. (Default value is 15 seconds)

CommandTimeout on the other hand is the maximum time for a specific sql command to execute. (Default value is 30 seconds)

If you are doing a bulk insert, etc. you might consider increasing the default commandtimeout. anyone who uses a limit of 0 for any of the two configurations? i believe it is not a good practice for applications to be waiting for life in a deadlock or connection full scenarios.


Posted 08-15-2006 1:23 PM by jokiz
Filed under: ,

Comments

Cesar Sanz wrote re: CommandTimeout vs ConnectionTimeout
on 10-19-2007 9:32 AM

Thanx for the aclaration, it helps me a lot.

Regards

on 05-28-2008 7:07 AM

Site build it work at home moms wahm. Work from home moms.


Copyright DevPinoy 2005-2008