Ask a questionAsk a question
 

QuestionSql connection Time out

  • Thursday, November 05, 2009 5:37 AMDheeraj pk Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Friends,
                   Is it possible execute  insert statement at same milliseconds and same Table. i got strange error like this
    Sql connection Timeout.

    Any Idea.

All Replies

  • Thursday, November 05, 2009 6:27 AMHooray HuMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello Dheeraj,

    Would you please share us the technology you're using and the detailed error message?

    Thanks,
    Hooray
  • Thursday, November 05, 2009 6:54 AMDheeraj pk Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi ,
          Sql server 2005 and .Net 2.0

    Thanks
  • Thursday, November 05, 2009 5:44 PMRaj Kasi - MSFTModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Can you please share some sample code and the exact error message?
    This posting is provided "AS IS" with no warranties, and confers no rights
  • Friday, November 06, 2009 2:39 PMDheeraj pk Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Raj,
              Please go through my scenario carefully.

    1) My application have N number of threads running Background each thread have its own sets of Sql Statement like(Insert,Update....& Stored Procedure).
    2) My application is based on OLTP(in one seconds 48 transaction may happen)

    could pls help me what are all factors i need to look up?

    Thanks
  • Friday, November 06, 2009 5:35 PMDan BenediktsonMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Can you please post the error message?
    This post is provided 'as is' and confers no express or implied warranties or rights.
  • Wednesday, November 11, 2009 3:43 AMNai-dong Jin - MSFTMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    >Is it possible execute  insert statement at same milliseconds and same Table. i got strange error like this
    >Sql connection Timeout.

    For insert operation, the command will be queued, and for update operation you can try the concurrency control.

    Based on the error "SQL connection Timout", what is the connection timeout value you set now and have you tried to increase that value?


    Microsoft Online Community Support Please remember to mark the replies as answers if they help and unmark them if they provide no help.