Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 30th, 2003, 02:35 PM
Registered User
 
Join Date: Jul 2003
Location: Jacksonville, FL, USA.
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
__________________
ssingh
Reply With Quote
  #2 (permalink)  
Old July 30th, 2003, 06:57 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Sydney, NSW, Australia.
Posts: 215
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Check the connection timout.

regards
David Cameron
Reply With Quote
  #3 (permalink)  
Old April 5th, 2004, 03:15 AM
Registered User
 
Join Date: Apr 2004
Location: BGL, KA, India.
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
Reply With Quote
  #4 (permalink)  
Old April 12th, 2004, 02:13 PM
Registered User
 
Join Date: Apr 2004
Location: Wilmington, NC, USA.
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
Reply With Quote
  #5 (permalink)  
Old April 19th, 2004, 11:10 AM
Authorized User
 
Join Date: Jun 2003
Location: , , Romania.
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).
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Timeout Expired Error nikotromus SQL Server 2000 16 December 5th, 2006 02: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



All times are GMT -4. The time now is 06:40 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.