CommandTimeOut property

Posts   
 
    
bernhard
User
Posts: 34
Joined: 15-Jan-2007
# Posted on: 14-Mar-2008 10:59:25   

Hi

I read that I can globally change the CommandTimeOut using DbUtil.CommandTimeOut for SelfService.

How can I do the when I am using an Adapter. The default is set to 30 which is much too low for my case. Setting the CommandTimeOut property on an each DatabaseAdapter instance is not a good way as I have to set the property as several places in my code.

Thanks for your help. Bernhard

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 14-Mar-2008 15:22:46   

You can either derive from the DataAccessAdapter and set the CommandTimeout internally. Or create and use a factoryClass which returns an instance of DataAccessAdapter after setting the CommandTimeOut to the specified value.

Similar thread: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=8243