Time out expired when i execute stored procedure.

  • Hi,

    I have an stored procedure , when i execute this procedure it throws an exception "TIME OUT EXPIREd".

    why this happened. i have attached the execution plan. please help me.

    thanks.

  • Though its good you have posted the plans, what statement is causing the Timeout ?



    Clear Sky SQL
    My Blog[/url]

  • Dave Ballantyne (9/15/2010)


    Though its good you have posted the plans, what statement is causing the Timeout ?

    when i call the stored procedure from front end then i display the time out expired.

  • Probably for the same reasons i have stated in your other thread

    http://www.sqlservercentral.com/Forums/Topic986028-360-1.aspx



    Clear Sky SQL
    My Blog[/url]

  • pankaj.kuchaliya (9/15/2010)


    Dave Ballantyne (9/15/2010)


    Though its good you have posted the plans, what statement is causing the Timeout ?

    when i call the stored procedure from front end then i display the time out expired.

    it display the ---

    System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

    at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)

    at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)

    at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)

    at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)

    at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)

    at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)

    at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)

    at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)

    at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()

    at RMI.RM_WS.Exec_sp_ETL_to_RPT()

  • I'm not reading through 10 plans to guess which is the problem. Do some investigation on your side, run the queries in Management Studio, and work out which of them are slow. Then post the query, table definitions, index definitions and execution plan.

    http://www.sqlservercentral.com/articles/SQLServerCentral/66909/

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Did you able to solve this problem..i am working with this problem so let me know if you have solution

    thanks

  • Please post new questions in a new thread. This is not a single problem with a single solution.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 8 posts - 1 through 7 (of 7 total)

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