How To Over come the problem in Time-out Expried

  • 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

  • tune the query to run faster.

  • 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.

  • 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.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply