Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Lin Ma #1
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
-
#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... -
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... -
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... -
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... -
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... -
Richard K Bethell #2
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
-
jimnpd #3
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
-
CMBergin #4
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...approximately> 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> 40 seconds I get the following error sql connection error.:disgust;
>
CMBergin Guest
-
jimnpd #5
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
-
CMBergin #6
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...The timeout period elapsed prior to completion of the operation or the> yes it run runs.
>
> The exact error is System.Data.SqlClient.SqlException: Timeout expired.
server is not responding.
CMBergin Guest
-
jimnpd #7
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
-
CMBergin #8
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...years worth of data. Can you tell me how to change the timeout ????> Yes I ran the script in sql anaylser and it took approx. 25 minutes for a
CMBergin Guest
-
jimnpd #9
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



Reply With Quote

