Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default SQL Timeout

    Dear all,

    I need run a few large queries for one time only. But I get scripttimeout.
    So I set up server.ScriptTimeout value. It works fine.

    But for one query, system gives me the following error:

    Microsoft OLE DB Provider for SQL Server (0x80040E31)
    Timeout expired

    No matter how much I increase ScriptTimeout value, I still have the same
    error.

    Is there a setting for SQL server timeout value?

    Thanks,

    Lin Ma


    Lin Ma Guest

  2. Similar Questions and Discussions

    1. #40750 [NEW]: fsockopen timeout parameter overwrites timeout for reading
      From: andreas dot rieber at 2e-systems dot com Operating system: OpenSuse PHP version: 5.2.1 PHP Bug Type: Network related...
    2. cfquery, timeout attribute and cfserver timeout setting
      On our server, CFMX 6.1, we have an option setting for timeout requests as120 seconds. Then in my query, I tried replacing the timeout setting to...
    3. WebService ignoring timeout properties? (Server was unable to process request. --> Timeout exired)
      Hi! I have a webservice serving the latest orders from a webshop. The customer uses a forms app client to fetch these orders and push them into...
    4. Timeout sometimes runs past the timeout length
      I'm using Director MX on Windows XP. I have created a programme that launches a dir in a movie window. I am using the timeout set of commands to...
    5. Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
      Gary Why not just change the connection timeout property? Your doing an update statement, which could take various amounts of time depending on...
  3. #2

    Default Re: SQL Timeout

    Script timeout value has no effect on SQL timeout. You have to change the
    value of your ADODB.Connection's CommandTimeout property to something long
    enough to allow your SQL server to do the work.

    R.

    "Lin Ma" <a@a.com> wrote in message
    news:ODGDLlzkDHA.1728@TK2MSFTNGP11.phx.gbl...
    > Dear all,
    >
    > I need run a few large queries for one time only. But I get scripttimeout.
    > So I set up server.ScriptTimeout value. It works fine.
    >
    > But for one query, system gives me the following error:
    >
    > Microsoft OLE DB Provider for SQL Server (0x80040E31)
    > Timeout expired
    >
    > No matter how much I increase ScriptTimeout value, I still have the same
    > error.
    >
    > Is there a setting for SQL server timeout value?
    >
    > Thanks,
    >
    > Lin Ma
    >
    >

    Richard K Bethell Guest

  4. #3

    Default SQL Timeout

    I have developed a web page in aspx that runs a sql statement against a
    database with over one million records. My problem is that after approximately
    40 seconds I get the following error sql connection error.:disgust;

    jimnpd Guest

  5. #4

    Default Re: SQL Timeout

    Does your statement run in your database's test environment? (i.e, Query
    Analyzer for SQL Server or TOAD or something for Oracle).

    "jimnpd" <webforumsuser@macromedia.com> wrote in message
    news:d04ju1$nil$1@forums.macromedia.com...
    > I have developed a web page in aspx that runs a sql statement against a
    > database with over one million records. My problem is that after
    approximately
    > 40 seconds I get the following error sql connection error.:disgust;
    >

    CMBergin Guest

  6. #5

    Default Re: SQL Timeout

    yes it run runs.

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

  7. #6

    Default Re: SQL Timeout

    The reason I ask is because those test environments will tell you what the
    execution time is. Knowing the execution time, and knowing the script
    timeout value set on your web server, you can decide if your query is too
    slow or your timeout is too quick and take appropriate action to fix
    whichever side you want to fix. Make sense?

    "jimnpd" <webforumsuser@macromedia.com> wrote in message
    news:d05bgj$t5$1@forums.macromedia.com...
    > yes it run runs.
    >
    > The exact error is System.Data.SqlClient.SqlException: Timeout expired.
    The timeout period elapsed prior to completion of the operation or the
    server is not responding.


    CMBergin Guest

  8. #7

    Default Re: SQL Timeout

    Yes I ran the script in sql anaylser and it took approx. 25 minutes for a years worth of data. Can you tell me how to change the timeout ????
    jimnpd Guest

  9. #8

    Default Re: SQL Timeout

    Whew! 25 minutes?
    I think we need to optimize your query first....
    Get an execution plan from QA; check for slow operations like table scans.
    A table scan of a large table is SLOW. Defining appropriate indices will
    speed the query along like you wouldn't believe. Also post your SQL
    statement. There might be more efficient ways to get your data.

    But the timeout can be altered in IIS (Right click->Properties->[Virtual
    Directory]->Configuration->[App Options], set the ASP script timeout there)
    or by altering the object itself, but I don't remember how since I don't
    have to do it. Check [url]www.w3schools.com[/url] and look through their ADO
    reference; it will be there.


    "jimnpd" <webforumsuser@macromedia.com> wrote in message
    news:d0qirr$d6t$1@forums.macromedia.com...
    > Yes I ran the script in sql anaylser and it took approx. 25 minutes for a
    years worth of data. Can you tell me how to change the timeout ????


    CMBergin Guest

  10. #9

    Default Re: SQL Timeout

    here is my sql statement; the one field text mssage is a blob

    SELECT DISTINCT o.CreateForward, o.VIN, o.VehState, o.VehPlateNbr,
    o.VehPlateYr, o.VehMake, o.VehType, o.ReqUniqueID, i.Dept
    FROM ResponseOUT o INNER JOIN RequestIN i ON o.ReqUniqueID = i.UniqueID
    WHERE o.CreateForward>=@StartDate AND o.CreateForward<=@EndDate AND
    o.VehPlateNbr LIKE '%' + UPPER(@Plate) + '%' AND o.VehState LIKE '%' +
    UPPER(@State) + '%' AND o.VehMake LIKE '%' + UPPER(@Make) + '%' AND
    o.TextMessage LIKE '%' + (@Color) + '%' AND o.TextMessage LIKE '%' + (@VehType)
    + '%' AND o.Vin LIKE '%' + (@Vin) + '%' AND o.VehPlateNbr >'0' AND i.Dept
    Like UPPER(@Dept) AND o.TextMessage LIKE '%' + (@Doors) + '%'

    jimnpd Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139