Changing CommandTimeout property in DBUTILS Class

Posts   
 
    
mzohreh
User
Posts: 6
Joined: 07-Dec-2004
# Posted on: 07-Dec-2004 13:16:13   

Hi,

I'm trying to increase the Commadtimeout in the generated dbutils class. This is a static member which is set to 30. I've changed this to 120 as shown below:

private static int _commandTimeOut = 120;

However, this always defaults back to 30! Is this a global setting somewhere which i can change!

Any help wouuld be appreciated!

Regards

Majid

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 07-Dec-2004 13:50:06   

use in your code: (once)

dbUtils.CommandTimeOut = 120;

after that, all calls will use the 120seconds timeout.

Frans Bouma | Lead developer LLBLGen Pro
mzohreh
User
Posts: 6
Joined: 07-Dec-2004
# Posted on: 07-Dec-2004 15:45:20   

Thanks Otis, I'm a happy man now!!! wink