Foros del Web » Programando para Internet » ASP Clásico »

Error y no se que es

Estas en el tema de Error y no se que es en el foro de ASP Clásico en Foros del Web. error '80020009' Exception occurred. q significa este error salu2 :) <embed src="http://www.autocar.com.mx/images/logo.swf" type="application/x-shockwave-flash" width="468" height="60" play="true" wmode="transparent" menu="false" loop="true">...
  #1 (permalink)  
Antiguo 08/01/2002, 19:22
Avatar de urjose  
Fecha de Ingreso: diciembre-2001
Mensajes: 5.286
Antigüedad: 22 años, 5 meses
Puntos: 1
Error y no se que es

error '80020009'
Exception occurred.


q significa este error

salu2 :)

<embed src="http://www.autocar.com.mx/images/logo.swf" type="application/x-shockwave-flash" width="468" height="60" play="true" wmode="transparent" menu="false" loop="true">
  #2 (permalink)  
Antiguo 09/01/2002, 13:56
 
Fecha de Ingreso: enero-2002
Mensajes: 59
Antigüedad: 22 años, 5 meses
Puntos: 0
Re: Error y no se que es

PRB: 80020009 Error When Retrieving Data from SQL
Last reviewed: October 20, 1997
Article ID: Q175239
The information in this article applies to:
ActiveX Data Objects (ADO), version 1.0
Microsoft Active Server Pages, version 1.0
Microsoft Visual InterDev, version 1.0


SYMPTOMS
The following error occurs when accessing a recordset in an Active Server Pages (ASP) file that contains &quot;Text&quot; or &quot;Blob&quot; type data from a SQL table:


Microsoft OLE DB Provider for ODBC Drivers error '80020009'


CAUSE
The following condition may cause the error to occur: Text/Blob fields are selected in an order preceding other types of fields.



RESOLUTION
When dealing with BLOB fields from SQL Server, you need to put them to the right of non-BLOB columns in the resultset. To be safe, you should also read the columns in left-to-right order, so if you have two BLOB columns as the last two columns in your resultset, read the first one and then the second. Do not read them in the reverse order.

The code example below demonstrates the correct order of field selection:


&lt;HTML&gt;
&lt;BODY bgcolor=white&gt;
&lt;%
Set cn = Server.CreateObject(&quot;ADODB.Connection&quot;)
Set rs = Server.CreateObject(&quot;ADODB.Recordset&quot;)

'open the connection
cn.Open &quot;&lt;Put your DSN here&gt;&quot;

'open the recordset


Notice that the Blob field, pr_info, is last in the field order:

rs.Open &quot;select pub_id, pr_info from pub_info&quot;, cn

While Not rs.EOF

Response.Write &quot;&lt;P&gt;PR Info:&lt;P&gt;&quot; &amp; rs(&quot;pr_info&quot;)
Response.Write &quot;&lt;P&gt;That was the PR Info for PubID &quot; &amp; rs(&quot;pub_id&quot;)
rs.MoveNext
Wend
%&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;


espero te sirva,
saludos.
  #3 (permalink)  
Antiguo 09/01/2002, 23:27
Avatar de urjose  
Fecha de Ingreso: diciembre-2001
Mensajes: 5.286
Antigüedad: 22 años, 5 meses
Puntos: 1
Re: Error y no se que es

muchas gracias por la info !

salu2 :)

<embed src="http://www.autocar.com.mx/images/logo.swf" type="application/x-shockwave-flash" width="468" height="60" play="true" wmode="transparent" menu="false" loop="true">
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 23:02.