ASP Timeout expired

02/02/2004 - 12:20 por Luis Esteban Valencia | Informe spam
My page is having this error

update mesciclo set mes = 01, ano 04 where id=1
Microsoft OLE DB Provider for SQL Server error '80040e31'

Timeout expired

/logistica/reciclopedido2.asp, line 134


The code of the page is this.

See the line 2. It seems it doesnt work.s

<%
Set Conn = Server.CreateObject("ADODB.Connection")
conn.connectiontimeout = 0
Conn.open = "Provider=SQLOLEDB.1;" & _
"Persist Security Info=True;" & _
"User ID=sa;" & _
"Initial Catalog=asw;" & _
"Data Source=MED13NT"

sql ="update mesciclo set mes = "&request.form("mes")&",
ano="&request.Form("ano")&" where id=1"
response.write sql
conn.execute(sql)

conn.execute("exec ciclo_pmes")
THE ERROR IS IN THIS LINE.
 

Leer las respuestas

#1 Luis Esteban Valencia
02/02/2004 - 16:53 | Informe spam
Quite esas lineas . y sigue el error



Microsoft OLE DB Provider for SQL Server error '80040e31'

Timeout expired

/logistica/reciclopedido2.asp, line 134





"Benjamin Porter" escribió en el mensaje
news:%
<english=on>
Hi. Since this is a spanish speaker newsgroup, and your name looks like a
spanish name, I'll answer your question in spanish.
</english>

Lo que veo es que en la linea 2 estás dando nada de tiempo para que se
ejecuten las operaciones sobre la base de datos... aunque la respuesta
logica sería "deja ese valor en 30,60,etc", creo que mejor eliminas esa
linea, no le veo sentido a especificar el timeout para la conexion, salvo
que tengas una razon real para hacerlo...




Atentamente
_____________________
Benjamin Porter

(Evidentemente sin el ".punto")







"Luis Esteban Valencia" escribió en el mensaje
news:
> My page is having this error
>
> update mesciclo set mes = 01, ano 04 where id=1
> Microsoft OLE DB Provider for SQL Server error '80040e31'
>
> Timeout expired
>
> /logistica/reciclopedido2.asp, line 134
>
>
> The code of the page is this.
>
> See the line 2. It seems it doesnt work.s
>
> <%
> Set Conn = Server.CreateObject("ADODB.Connection")
> conn.connectiontimeout = 0
> Conn.open = "Provider=SQLOLEDB.1;" & _
> "Persist Security Info=True;" & _
> "User ID=sa;" & _
> "Initial Catalog=asw;" & _
> "Data Source=MED13NT"
>
> sql ="update mesciclo set mes = "&request.form("mes")&",
> ano="&request.Form("ano")&" where id=1"
> response.write sql
> conn.execute(sql)
>
> conn.execute("exec ciclo_pmes")
> THE ERROR IS IN THIS LINE.
>
>
>
>
>


Preguntas similares