ADO.NET SQL SERVER ERROR

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Meiny

    #1

    ADO.NET SQL SERVER ERROR

    When I'm Runung An insert Sql Stored procedure on SQL
    SERVER in my program ,after some seconds this message is
    handled.
    I have tested this SP on Query Analyzer more and more,the
    execution time in Query Analyzer is about 45 seconds.and
    works properly
    But in my program , the progarm stops responding and then
    this exception thrown.
    the original message is:
    "Timeout expired. The timeout period elapsed prior to
    completion of the operation or the server is not
    responding."

  • Arild Bakken

    #2
    Re: ADO.NET SQL SERVER ERROR

    Did you set the timeout on the command? The default is 30 seconds, so if it
    spends 45 seconds, then you will get a timeout.

    Arild


    "Meiny" <mahmudi58@hotm ail.com> wrote in message
    news:039601c3b1 88$c00be720$a50 1280a@phx.gbl.. .[color=blue]
    > When I'm Runung An insert Sql Stored procedure on SQL
    > SERVER in my program ,after some seconds this message is
    > handled.
    > I have tested this SP on Query Analyzer more and more,the
    > execution time in Query Analyzer is about 45 seconds.and
    > works properly
    > But in my program , the progarm stops responding and then
    > this exception thrown.
    > the original message is:
    > "Timeout expired. The timeout period elapsed prior to
    > completion of the operation or the server is not
    > responding."
    >[/color]


    Comment

    Working...