Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 30th, 2003, 02:35 PM
Registered User
 
Join Date: Jul 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Timeout expired

I have problem with executing stored proc through VB6.0
to Sql 2000.
The stored proc takes 2 min to run from query analyzer and runs successfully, but when I run it through VB command object it gives me 'timeout expired' error.

I have tried setting .CommandTimeout = 60 * 20 or even 0, but the
call returns within 30 sec.

the .CommandTimeout = 60 * 20
The query time-out(sec) setting on the Tools > options > advanced
is set to be 0.
I sure it has something to do with sql server.
Please suggest!


ssingh
 
Old July 30th, 2003, 06:57 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 215
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Check the connection timout.

regards
David Cameron
 
Old April 5th, 2004, 03:15 AM
Registered User
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
I am facing the same issues,can anybody tell me is there any way i could resolve this issue
Thanks In advance
 
Old April 12th, 2004, 02:13 PM
Registered User
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There is a property called ConnectionTimeout, the default value is 15 seconds. You might want to increase that suitably.

Hemant Gaur
 
Old April 19th, 2004, 11:10 AM
Authorized User
 
Join Date: Jun 2003
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think the corect property is CommandTimeout of ADODB.Connection. I usually set this to 180 (in seconds).





Similar Threads
Thread Thread Starter Forum Replies Last Post
Timeout Expired Error nikotromus SQL Server 2000 16 December 5th, 2006 03:54 PM
Timeout expired ks2006 ASP.NET 2.0 Basics 12 September 8th, 2006 03:54 PM
TimeOut Expired Lalit_Pratihari SQL Server 2000 1 July 23rd, 2006 12:59 PM
Timeout expired glibo SQL Server 2000 6 July 21st, 2006 11:58 AM
Timeout Expired Error vinod_pawar1 SQL Server 2000 5 July 17th, 2004 09:37 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.