Command Timeout in LLBLgen

Posts   
 
    
Abhi070290
User
Posts: 43
Joined: 25-Apr-2018
# Posted on: 08-Aug-2018 15:38:35   

Hi Team,

I have a project in which while loading a heavy order its takes around 75 seconds to load it completely.

I want to implement Command timeout in DataAccessAdapter so that if it will take more than 60 seconds then it will throw an exception which will be caught in Catch block.

Can you please tell me how to implement this?

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 08-Aug-2018 18:19:39   
Abhi070290
User
Posts: 43
Joined: 25-Apr-2018
# Posted on: 09-Aug-2018 07:02:45   

Firebird and SqlServer CE don't support command timeouts and a CommandTimeOut value is ignored.

As i am using SQL server only then it wont be of any use for me Walaa. IS there any other method to implement command timeout??

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 09-Aug-2018 09:38:57   

You're using sql server, so the command timeout feature as described in the documentation is useful for you. It's only ignored in case of SQL Server CE and firebird (as command timeouts don't work there), but as you're using sql server full that's not applicable to your situation. You can use the timeout feature as described in the docs and it should work fine.

Frans Bouma | Lead developer LLBLGen Pro