SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
Search:  
 
 
        
Home       Members    Calendar    Who's On



How To Over come the problem in Time-out Expried Expand / Collapse
Author
Message
Posted Friday, October 30, 2009 7:26 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Wednesday, November 11, 2009 3:18 AM
Points: 21, Visits: 46
Dear Friends;

The Problem like I have to Write the sp in Sqlserver 2005 the Sp run around 6min;

Because The Lot of tables and various database to fetch the records;

I want to use Asp.net front End to Run the Problem;
To Throw Error at
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

How Can i Over come the Problem;


In Asp.net Configuration To Set sessionTime out in 20min;

In other way to run the sp in with in 3 min;

How it;s possible


Pls help me;

Thanks advance;
A.Faijurrahuman

Post #811555
Posted Friday, October 30, 2009 7:45 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: Administrators
Last Login: Yesterday @ 4:30 PM
Points: 21,860, Visits: 6,079
tune the query to run faster.
Post #811580
Posted Monday, November 02, 2009 5:26 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, November 03, 2009 2:06 AM
Points: 1, Visits: 2
Hi,

optimize the query use some following steps :

select query from condition joins with (nolock).

declare table variable in your stored procedure if you have any condtions like groupby or where condition.This will reduce the time of your exection.

create non-clustered index for maximum required columns.

use view table with nolock , based on the condition.

put your procedure in .net CLR integration, this will give better performance to you.



Post #812318
Posted Tuesday, November 03, 2009 4:45 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, November 03, 2009 6:25 AM
Points: 1,173, Visits: 207
faijurrahuman17 (10/30/2009)
Dear Friends;

In Asp.net Configuration To Set sessionTime out in 20min;


That is the Web Session time and has nothing to do with your database connection.
You have Query Timeout on your Command object and you have connection timeout on your connection object. These needs to be changed.



Post #812858
« Prev Topic | Next Topic »


Permissions Expand / Collapse