For Programmers: Free Programming Magazines  


Home > Archive > ASP > February 2005 > Re: I am having a problem in my asp in the recorsets running at iis 6.0 and sql 2000









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: I am having a problem in my asp in the recorsets running at iis 6.0 and sql 2000
Gabriel Mejía

2005-02-22, 3:55 pm

this was the error

Error Type:
ADODB.Field (0x80020009)
Either BOF or EOF is True, or the current record has been deleted. Requested
operation requires a current record.
/local/datosiniciales.asp, line 50


"Gabriel Mejía" <gabrielme@elcolombiano.com.co> escribió en el mensaje
news:u58ef$PGFHA.2572@tk2msftngp13.phx.gbl...
> bob.
>
>
> I just modified many asp and the way you told me and my web site just
> crash again some minutes ago.
>
> the next is the asp modified
>
>
> Note: (I know that the name of the recodrset is not the most elegant. The
> name of the ONLY recordset is "Recordset14" as you can see)
>
>
> <%
>
>
> If session("allow") = "" Then
> response.redirect("ingresoperador.asp")
> end if
> response.expires=0
> Response.Buffer = True
> Response.AddHeader "Pragma", "no-cache"
> Response.AddHeader "cache-control", "no-store"
>
>
> '----------------llama el cookie
> nombreoficina=Request.Cookies("equipo")("oficina")
> nombreequipo=Request.Cookies("equipo")("nombre")
> conectacadena="Driver={SQL
>

Server};server="+session("SGP")+";database="+session("Basedatos")+";uid="+se
> ssion("clavesgp")+";pwd="+session("passsgp")
>
>
> '-------------------------objeto conexion
>
>
> Set cn = CreateObject("adodb.connection")
> cn.open = conectacadena
>
>
>
> '---------------------------------------busco el codigo de la oficina que
> corresponde al nombre
> sql14="SELECT * FROM dbo.tblOficinas WHERE strNombre='" + nombreoficina +
> "'"
> Set cmd=CreateObject("adodb.command")
> cmd.CommandType=1
> cmd.CommandText=sql14
> Set cmd.ActiveConnection = cn
>
>
> set Recordset14 = Server.CreateObject("ADODB.Recordset")
> Recordset14=cmd.Execute()
>
> '----------------------------------en las siguientes lineas se almcenan

las
> rutas donde iria a quedar los
> ' archivos txt con los comprobantes de
> impresion y los archivos adjuntos.
> session("strRutaComprobantes")=Recordset14("strRutaComprobantes")
> session("strRutaAdjuntos")=Recordset14("strRutaAdjuntos")
>
> 'Recordset14.close
> set Recordset14=nothing
> cn.Close
> Set cn = nothing
> %>
> <%
>
> session("dtmfechaaviso")=""
> session("numdias")=""
> session("tipoclasificado")=""
> session("edicion")=""
> session("publicacion")=""
> session("subdivision")=""
> session("idTipoProducto")=""
> session("idColor")=""
> session("idModulo")=""
> session("idTipoEdicion")=""
> Session("nombrev")= ""
> Session("numeroaviso")=""
> Session("nitv")=""
> Session("Terminal")=""
> Session("Oficina")=""
> Session("Seccion")=""
> Session("idSubSeccion")=""
> Session("idTipoMarca")=""
> Session("fondo")=""
> Session("borde")=""
> Session("titulo")=""
> Session("textoTitulo")=""
> session("fechas")=""
> session("diainicial")=""
> nitanterior=Request.QueryString("nitanterior")
> telefonoanterior=Request.QueryString("telefonoanterior")
> nombreanterior=Request.QueryString("nombreanterior")
> direccionanterior=Request.QueryString("direccionanterior")
> nombre2anterior=Request.QueryString("nombre2anterior")
> %>
> <head>
> <title>Untitled Document</title>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> </head>
> <frameset cols="62%,*" frameborder="NO" border="0" framespacing="0">
> <frame name="mainFrame" scrolling="NO"
>

src="datos%20cliente.asp?nitanterior=<%=nitanterior%>&telefonoanterior=<%=te
>

lefonoanterior%>&nombreanterior=<%=nombreanterior%>&direccionanterior=<%=dir
> eccionanterior%>&nombre2anterior=<%=nombre2anterior%>">
> <frame name="rightFrame" scrolling="NO" noresize src="eleccion1.asp">
> </frameset>
> <noframes><body bgcolor="#FFFFFF">
>
> </body></noframes>
> </html>
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com