Microsoft Cursor Engine error "80004005" - ME AYUDA POR FAVOR!

  • mindtripstudios
  • Newbie
  • Newbie
  • No Avatar
  • Registrado: Jun 14, 2003
  • Mensajes: 5
  • Status: Offline

Nota Junio 14th, 2003, 1:57 pm

http://www.niamecollections.com/newsite ... ion=search - Si usted va a ese enlace podrás ver el error me...Funciona como sigue:

Quote:
Microsoft Cursor Engine error "80004005"
Proveedor de datos u otro servicio devolvió un estado E_FAIL.

/ newsite / SBT. asp, línea 70


No creo que hay un error en esa línea (pero espero que me equivoque y uno de los chicos / chicas me puede ayudar....) Im en extrema necesidad de una resolución de...

Aquí está el código:
Código: [ Select ]
<table width="390" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="390" height="5" colspan="3"></td>
</tr>
<%
If action = "search" Then
Connect.open Cstring

Set rsSearch = Server.CreateObject("ADODB.Recordset")
sqlcom = whereclause
rsSearch.CursorLocation = 3
rsSearch.Open sqlcom, Connect, 3

numresults = rsSearch.RecordCount

If numresults = -1 Then
numresults = 0
End If

i = 1
%>
<tr>
<td height="18" colspan="2" valign="top" background="images/bar.gif"> <div align="center"></div>
<div align="center"><img src="images/searchr.gif" width="110" height="18"></div></td>
</tr>
<tr>
<td width="100%" height="20" valign="top"><strong><font size="2" face="Tahoma">Results: <%=Response.Write(numresults)%> </font></strong></td>
</tr>
<tr>
<td colspan="2" valign="top"> <%
IF Not rsSearch.eof Then
Do Until rsSearch.eof
%><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="bottom">
<td height="25" colspan="2"><font size="2" face="Tahoma"><strong><%=i%>.</strong> <em><a href='product.asp?ID=<%=rsSearch("productID")%>'><%=rsSearch("productName")%></a></em></font></td>
</tr>
<tr>
<td width="10%"> </td>
<td width="90%"><font size="2" face="Tahoma"><%=left(rsSearch("productDesc"), 100)%>...</font></td>
</tr>
<tr>
<td colspan="2"><div align="right"><strong><font color="930025" size="2" face="Tahoma">$<%=rsSearch("productPrice")%></font></strong></div></td>
</tr>
</table>
<%
i = i + 1
rsSearch.MoveNext
Loop%></td>
</tr>
<tr>
<td colspan="2" valign="top"> </td>
</tr>
<%
Else
%>
<tr align="center">
<td colspan="2"><font size="2" face="Tahoma"><br>
Sorry, there are no results for the type you selected at this time. You
can search again or check back soon for updates.<br>
</font></td>
</tr>
<tr align="center">
<td height="40" colspan="2"> </td>
</tr>
<%
End If
%>
  1. <table width="390" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  2. <tr>
  3. <td width="390" height="5" colspan="3"></td>
  4. </tr>
  5. <%
  6. If action = "search" Then
  7. Connect.open Cstring
  8. Set rsSearch = Server.CreateObject("ADODB.Recordset")
  9. sqlcom = whereclause
  10. rsSearch.CursorLocation = 3
  11. rsSearch.Open sqlcom, Connect, 3
  12. numresults = rsSearch.RecordCount
  13. If numresults = -1 Then
  14. numresults = 0
  15. End If
  16. i = 1
  17. %>
  18. <tr>
  19. <td height="18" colspan="2" valign="top" background="images/bar.gif"> <div align="center"></div>
  20. <div align="center"><img src="images/searchr.gif" width="110" height="18"></div></td>
  21. </tr>
  22. <tr>
  23. <td width="100%" height="20" valign="top"><strong><font size="2" face="Tahoma">Results: <%=Response.Write(numresults)%> </font></strong></td>
  24. </tr>
  25. <tr>
  26. <td colspan="2" valign="top"> <%
  27. IF Not rsSearch.eof Then
  28. Do Until rsSearch.eof
  29. %><table width="100%" border="0" cellspacing="0" cellpadding="0">
  30. <tr valign="bottom">
  31. <td height="25" colspan="2"><font size="2" face="Tahoma"><strong><%=i%>.</strong> <em><a href='product.asp?ID=<%=rsSearch("productID")%>'><%=rsSearch("productName")%></a></em></font></td>
  32. </tr>
  33. <tr>
  34. <td width="10%"> </td>
  35. <td width="90%"><font size="2" face="Tahoma"><%=left(rsSearch("productDesc"), 100)%>...</font></td>
  36. </tr>
  37. <tr>
  38. <td colspan="2"><div align="right"><strong><font color="930025" size="2" face="Tahoma">$<%=rsSearch("productPrice")%></font></strong></div></td>
  39. </tr>
  40. </table>
  41. <%
  42. i = i + 1
  43. rsSearch.MoveNext
  44. Loop%></td>
  45. </tr>
  46. <tr>
  47. <td colspan="2" valign="top"> </td>
  48. </tr>
  49. <%
  50. Else
  51. %>
  52. <tr align="center">
  53. <td colspan="2"><font size="2" face="Tahoma"><br>
  54. Sorry, there are no results for the type you selected at this time. You
  55. can search again or check back soon for updates.<br>
  56. </font></td>
  57. </tr>
  58. <tr align="center">
  59. <td height="40" colspan="2"> </td>
  60. </tr>
  61. <%
  62. End If
  63. %>
  • Anonymous
  • Bot
  • No Avatar
  • Registrado: 25 Feb 2008
  • Mensajes: ?
  • Loc: Ozzuland
  • Status: Online

Nota Junio 14th, 2003, 1:57 pm

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • Avatar de Usuario
  • Registrado: Dic 20, 2002
  • Mensajes: 8922
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Nota Junio 14th, 2003, 7:07 pm

De ese código que nos ha facilitado que es una línea #70 de sbt.asp
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • mindtripstudios
  • Newbie
  • Newbie
  • No Avatar
  • Registrado: Jun 14, 2003
  • Mensajes: 5
  • Status: Offline

Nota Junio 14th, 2003, 7:11 pm

Código: [ Select ]
numresults = rsSearch.RecordCount
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • Avatar de Usuario
  • Registrado: Dic 20, 2002
  • Mensajes: 8922
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Nota Junio 15th, 2003, 1:13 am

Podría ser que el error de regresar debido a que su no aplicación. Echa un vistazo a esta página a microsoft:

http://support.microsoft.com/default.as ... US;q269361

HOWTO: el trabajo en torno a la limitación de que ADO MaxRecord es que no se han aplicado en DS proveedor OLEDB ADsDSOObject

Este artículo fue publicado previamente en virtud de Q269361
RESUMEN
El método MaxRecord fuera de un objeto recordset ADO es que no se han aplicado en el Directorio de Servicios (DS) proveedor OLEDB ADsDSOObject.

Este artículo ofrece una Microsoft Visual Basic y Microsoft Visual Basic Script muestra que muestran cómo se puede trabajar en torno a esta limitación.
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • Avatar de Usuario
  • Registrado: Dic 20, 2002
  • Mensajes: 8922
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Nota Junio 15th, 2003, 1:15 am

También puede asegurarse de que usted utiliza ado 2,5, 2,6 - puede buscar support.microsoft.com para que yo creo.
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • mindtripstudios
  • Newbie
  • Newbie
  • No Avatar
  • Registrado: Jun 14, 2003
  • Mensajes: 5
  • Status: Offline

Nota Junio 15th, 2003, 7:31 am

Muchas gracias, mi equipo de diseño se va a intentar que fuera.... Si tiene alguna otra idea por favor publicarlas. Malos puesto los resultados de la presente demasiado...
  • mindtripstudios
  • Newbie
  • Newbie
  • No Avatar
  • Registrado: Jun 14, 2003
  • Mensajes: 5
  • Status: Offline

Nota Junio 15th, 2003, 7:34 am

¿Cómo puedo utilizar esta solución en mi código - gracias

Publicar Información

  • Total de mensajes en este tema: 7 mensajes
  • Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 213 invitados
  • No puede abrir nuevos temas en este Foro
  • No puede responder a temas en este Foro
  • No puede editar sus mensajes en este Foro
  • No puede borrar sus mensajes en este Foro
  • No puede enviar adjuntos en este Foro
 
 

© 2011 Unmelted, LLC. Ozzu® es una marca registrada de Unmelted, LLC