Ask a Question related to ASP.NET General, Design and Development.
-
Bob Johnson #1
Re: 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 your server
load.
Just set the connection timeout property to something insane like 3000
seconds <--- note you need to make ABSOLUTELY sure that your sql statements
are properly formatted before you ever do this.
Ciao
Bob J.
"Gary" <msnews@microsoft.com> wrote in message
news:ugwK0zNXDHA.2484@TK2MSFTNGP09.phx.gbl...getting> I am developing a .NET web application. We are using SQL 2000. I amquery> this Exception message while executing a query.
>
> "Timeout expired. The timeout period elapsed prior to completion of the
> operation or the server is not responding."
>
> This query fails when I execute it for the first time. After ttat theAND> works most of the times, but I still receive this message sometimes. I am
> unable to find out why this occurs.
>
> This is query that is causing the timeout exception
>
> private const string SQL_UNASSIGN_TRAINING = "UPDATE tblAssignedTraining
>
> SET IsWaivedOff = 1 WHERE TrainingId = @TrainingId AND UserId = @UserId>
> Status <> 4";
>
> The following is the database design for the tblAssignedTraining table.
>
> Status - Integer (can have value 1, 2, 3 or 4)
>
> TrainingId - Integer
>
> UserId - varchar(50)
>
> IsWaivedOff - Bit
>
> Any help would be highly appreciated.
>
> TIA,
>
> Gary
>
>
Bob Johnson Guest
-
#39029 [NEW]: Persistent connections remain even after timeout has elapsed
From: kiranm at hp dot com Operating system: HP-UX PHP version: 5.1.6 PHP Bug Type: OCI8 related Bug description: ... -
#39029 [Bgs]: Persistent connections remain even after timeout has elapsed
ID: 39029 User updated by: kiranm at hp dot com Reported By: kiranm at hp dot com Status: Bogus Bug Type: ... -
#39029 [Bgs->Opn]: Persistent connections remain even after timeout has elapsed
ID: 39029 User updated by: kiranm at hp dot com Reported By: kiranm at hp dot com -Status: Bogus +Status: ... -
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... -
ASP + SQL Server - Timeout Expired
Hello In my ASP page I am trying to ascertain whether a randomly generated ID starts with certain characters that are not allowed or has been used...



Reply With Quote

