Re: Coping with slow SQL Servers in ASP.NET



On Feb 1, 11:10 am, "Microsoft Newsserver" <m...@xxxxxxxxxxx> wrote:
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

Add "Connect Timeout=<seconds>;" to your connection string and use a
try-catch to handle the sql exception.

You can also try to execute that slow task using an asynchronous call.
If it's a buk copying process, look at the SqlBulkCopy Class
(System.Data.SqlClient)
.



Relevant Pages

  • Coping with slow SQL Servers in ASP.NET
    ... We have situations occasionally where the SQL server is extremely slow to ... The problm is that the user is left with loading page and has no ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Cant start SQL Server (MSSQLSERVER) service
    ... WSS FAQ www.wssfaq.com / wss.collutions.com ... I can't get the SQL Server service to start on my sharepoint server and I believe this is stopping sharepoint from working. ... Check the database connection information and make sure that the ... SQL Exception Class: 20 ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Cursors in functions
    ... >> When I want to loop through a result in sp I use Cursor ... >Server are extremely slow. ... >statements can be slow by itself, since SQL Server has to ... >may be able to offer a set-based solution. ...
    (microsoft.public.sqlserver.programming)
  • Re: SQL Server too slow
    ... > When I query or browse databases or tables in SQL Server 2000 it works ... > Now I'm installing Service Pack 3, ... > is extremely slow too. ... Books Online for SQL Server SP3 at ...
    (microsoft.public.sqlserver.security)
  • Detecting network trouble?
    ... to connect with an in house SQL Server. ... The app runs extremely slow on ... bits/secto the specific SQL Server from my machine? ...
    (microsoft.public.windowsxp.general)