Action Stored Procedure Timeout

Posts   
 
    
hplloyd
User
Posts: 191
Joined: 29-Oct-2004
# Posted on: 04-Oct-2006 12:50:48   

Hi,

I am using SQL Server 2000 and have a stored procedure that takes around 40 seconds to execute from SQL Query Analyser

When I call the same SP from my LLBL generated code, the application hangs, however if I adjust the SP so that it runs in under 30 seconds it works perfectly....

Is there any way that I can adjust the timeout for the SP so that my code does not hang

Regards

Huw

Additional Info:

No exception is thrown by LLBL it simply gets "stuck" at the line of code executing the action procedure.

The reason that I know it is a timeout issue is that you get a similar result in SQL Enterprise Manager whereby if you run a query that takes over 30 seconds it throws a timeout erro, however running the same query in SQL Query analyser does not timeout.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 04-Oct-2006 15:32:39   

Please refer to the following thread: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=5701 For selfServicing you can use DbUtils.CommandTimeOut

Please refer to the manual: "Using the generated code -> SelfServicing -> DbUtils functionality -> Command timeouts" &
"Using the generated code -> Adapter-> DataAccessAdapter Functionality -> Command timeouts"