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 October 3rd, 2007, 12:36 AM
Authorized User
 
Join Date: Nov 2005
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Default SQL Server timeout expired

Hi all,

Im using sqlserver 2000 and code language used c#,asp.net.
im making some reports and doing there transaction using stored procedures.
My problem is allways system is running correctly in our(my PC) side. But it made error timeout expired at clientside machine.
There are so many forums given answers to solve this "Connection strig time out period increasing."
But i want to know how i do it in client side.I think i dont need to increase connection string timeout period. Are there any other way to do(? have anyway to do it clients sqlserver) in sqlserver. If its YES please help me to do it.
thanks all
__________________
MSB
 
Old October 3rd, 2007, 03:59 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Well if the connection is being made but the actual query is taking too long then adjust the CommandTimeout on the Command instance.

--

Joe (Microsoft MVP - XML)
 
Old October 11th, 2007, 06:40 PM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 385
Thanks: 0
Thanked 0 Times in 0 Posts
Default

or write more efficient code that executes quicker before the timeout occurs.


 
Old October 17th, 2007, 10:47 AM
Registered User
 
Join Date: Oct 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you are using parameter(s) in your stored procedure, try this examples :
    ... sp_example (@varTest as varchar(30))
    declare @Test as varchar(30)
    set @Test = @varTest
    ...
then use @Test in your select command instead of @varTest.

Hope this will help.







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 ssingh SQL Server 2000 4 April 19th, 2004 11:10 AM





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