Re: Coping with slow SQL Servers in ASP.NET

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



You can time out the query, but I would find out why you are having the
problem first.

Step 1 is to run performance counters and see what is happening

Then, you will likely find out which queries are your problem child and fix
them. Followed by possibly adding or correcting indexes. Or moving to a
stronger box, as you have outgrown the box you are running SQL on.

Throwing in the connection timeout will let you tell the user the server is
too busy, but it will not solve the problem.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
"Microsoft Newsserver" <me@xxxxxxxxxxx> wrote in message
news:OTpCRsLZIHA.4684@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

We have situations occasionally where the SQL server is extremely slow to
respond. The problm is that the user is left with loading page and has no
idea what in heaven is going on.

Does anyone have any ideas how the DAL can be confiured to timeout and
throw an exception if the response is not quick enough ?

Cheers




.



Relevant Pages

  • busy with another hstmt - Error
    ... I am running SQL 2k on Win 2k Server. ... [ODBC SQL Server Driver]Connection is busy with ... ' Open From ACH Processing recordset ... DDL tblACH_Proc: ...
    (microsoft.public.sqlserver.programming)
  • Connection time out, URGENT
    ... I developed this application with VB6 (app consists of ... The app uses SQL server 7when ... All laptops are running Win98. ... connection timeout errors occur one after the other. ...
    (microsoft.public.sqlserver.msde)
  • Cannot Start
    ... We have someone running SQL 2000 on an NT 4.0 server. ... Today, for some reason, the SQL server will not start. ... The SNMP Service is ignoring extension agent.dll ...
    (microsoft.public.sqlserver.server)
  • Re: Renaming Computer Running SQL or MSDE
    ... SQL Server will reconfigure itself to the new machine name just ... > problems encountered when renaming a computer that is running SQL or ... > to suspect that it is permissible to rename a computer that is running ... > Personal Ed, MSDE) ...
    (microsoft.public.sqlserver.msde)
  • RE: ODBC SQL Server Driver: Timeout expired error
    ... Not sure why but it could be your connection timeout. ... there is a CommandTimeout on the connection object too so try ... SQL Server Developer Support Engineer ... Microsoft OLE DB Provider for ODBC Drivers error '80040e31' ...
    (microsoft.public.data.oledb)