Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

marcusvgl

Microsoft OLE DB Provider for ODBC Drive

Recommended Posts

POR FAVOR ME AJUDEM APARECE O SEGUINTE ERRO E SÓ DA NO SERVIDOR MEU Q É O BRINKSTER.COM

NO MEU MICRO DEU CERTINHO FUNCIONANDO PERFEITAMENTE EU USO O WIN98 COM O PWS O SEGUTINTE ERRO EM CUBO MEDIA

 

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

 

[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

 

/cubomedia/index.asp, line 5

 

<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>

<!--#include file="Connections/cxClipes.asp" -->

<%

var Recordset1 = Server.CreateObject("ADODB.Recordset");

Recordset1.ActiveConnection = MM_cxClipes_STRING;

Recordset1.Source = "SELECT Grupo, Clipe, Letra, Download, Imagem FROM [Dados Clipes]";

Recordset1.CursorType = 0;

Recordset1.CursorLocation = 2;

Recordset1.LockType = 1;

Recordset1.Open();

var Recordset1_numRows = 0;

%>

<%

// *** Recordset Stats, Move To Record, and Go To Record: declare stats variables

 

// set the record count

var Recordset1_total = Recordset1.RecordCount;

 

// set the number of rows displayed on this page

if (Recordset1_numRows < 0) {            // if repeat region set to all records

  Recordset1_numRows = Recordset1_total;

} else if (Recordset1_numRows == 0) {    // if no repeat regions

  Recordset1_numRows = 1;

}

 

// set the first and last displayed record

var Recordset1_first = 1;

var Recordset1_last  = Recordset1_first + Recordset1_numRows - 1;

 

// if we have the correct record count, check the other stats

if (Recordset1_total != -1) {

  Recordset1_numRows = Math.min(Recordset1_numRows, Recordset1_total);

  Recordset1_first  = Math.min(Recordset1_first, Recordset1_total);

  Recordset1_last    = Math.min(Recordset1_last, Recordset1_total);

}

%>

<% var MM_paramName = ""; %>

<%

// *** Move To Record and Go To Record: declare variables

 

var MM_rs        = Recordset1;

var MM_rsCount  = Recordset1_total;

var MM_size      = Recordset1_numRows;

var MM_uniqueCol = "";

    MM_paramName = "";

var MM_offset = 0;

var MM_atTotal = false;

var MM_paramIsDefined = (MM_paramName != "" && String(Request(MM_paramName)) != "undefined");

%>

<%

// *** Move To Record: handle 'index' or 'offset' parameter

 

if (!MM_paramIsDefined && MM_rsCount != 0) {

 

  // use index parameter if defined, otherwise use offset parameter

  r = String(Request("index"));

  if (r == "undefined") r = String(Request("offset"));

  if (r && r != "undefined") MM_offset = parseInt®;

 

  // if we have a record count, check if we are past the end of the recordset

  if (MM_rsCount != -1) {

    if (MM_offset >= MM_rsCount || MM_offset == -1) {  // past end or move last

      if ((MM_rsCount % MM_size) != 0) {  // last page not a full repeat region

        MM_offset = MM_rsCount - (MM_rsCount % MM_size);

      } else {

        MM_offset = MM_rsCount - MM_size;

      }

    }

  }

 

  // move the cursor to the selected record

  for (var i=0; !MM_rs.EOF && (i < MM_offset || MM_offset == -1); i++) {

    MM_rs.MoveNext();

  }

  if (MM_rs.EOF) MM_offset = i;  // set MM_offset to the last possible record

}

%>

<%

// *** Move To Record: if we dont know the record count, check the display range

 

if (MM_rsCount == -1) {

 

  // walk to the end of the display range for this page

  for (var i=MM_offset; !MM_rs.EOF && (MM_size < 0 || i < MM_offset + MM_size); i++) {

    MM_rs.MoveNext();

  }

 

  // if we walked off the end of the recordset, set MM_rsCount and MM_size

  if (MM_rs.EOF) {

    MM_rsCount = i;

    if (MM_size < 0 || MM_size > MM_rsCount) MM_size = MM_rsCount;

  }

 

  // if we walked off the end, set the offset based on page size

  if (MM_rs.EOF && !MM_paramIsDefined) {

    if ((MM_rsCount % MM_size) != 0) {  // last page not a full repeat region

      MM_offset = MM_rsCount - (MM_rsCount % MM_size);

    } else {

      MM_offset = MM_rsCount - MM_size;

    }

  }

 

  // reset the cursor to the beginning

  if (MM_rs.CursorType > 0) {

    if (!MM_rs.BOF) MM_rs.MoveFirst();

  } else {

    MM_rs.Requery();

  }

 

  // move the cursor to the selected record

  for (var i=0; !MM_rs.EOF && i < MM_offset; i++) {

    MM_rs.MoveNext();

  }

}

%>

<%

// *** Move To Record: update recordset stats

 

// set the first and last displayed record

Recordset1_first = MM_offset + 1;

Recordset1_last  = MM_offset + MM_size;

if (MM_rsCount != -1) {

  Recordset1_first = Math.min(Recordset1_first, MM_rsCount);

  Recordset1_last  = Math.min(Recordset1_last, MM_rsCount);

}

 

// set the boolean used by hide region to check if we are on the last record

MM_atTotal = (MM_rsCount != -1 && MM_offset + MM_size >= MM_rsCount);

%>

<%

// *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters

 

// create the list of parameters which should not be maintained

var MM_removeList = "&index=";

if (MM_paramName != "") MM_removeList += "&" + MM_paramName.toLowerCase() + "=";

var MM_keepURL="",MM_keepForm="",MM_keepBoth="",MM_keepNone="";

 

// add the URL parameters to the MM_keepURL string

for (var items=new Enumerator(Request.QueryString); !items.atEnd(); items.moveNext()) {

  var nextItem = "&" + items.item().toLowerCase() + "=";

  if (MM_removeList.indexOf(nextItem) == -1) {

    MM_keepURL += "&" + items.item() + "=" + Server.URLencode(Request.QueryString(items.item()));

  }

}

 

// add the Form variables to the MM_keepForm string

for (var items=new Enumerator(Request.Form); !items.atEnd(); items.moveNext()) {

  var nextItem = "&" + items.item().toLowerCase() + "=";

  if (MM_removeList.indexOf(nextItem) == -1) {

    MM_keepForm += "&" + items.item() + "=" + Server.URLencode(Request.Form(items.item()));

  }

}

 

// create the Form + URL string and remove the intial '&' from each of the strings

MM_keepBoth = MM_keepURL + MM_keepForm;

if (MM_keepBoth.length > 0) MM_keepBoth = MM_keepBoth.substring(1);

if (MM_keepURL.length > 0)  MM_keepURL = MM_keepURL.substring(1);

if (MM_keepForm.length > 0) MM_keepForm = MM_keepForm.substring(1);

%>

<%

// *** Move To Record: set the strings for the first, last, next, and previous links

 

var MM_moveFirst="",MM_moveLast="",MM_moveNext="",MM_movePrev="";

var MM_keepMove = MM_keepBoth;  // keep both Form and URL parameters for moves

var MM_moveParam = "index";

 

// if the page has a repeated region, remove 'offset' from the maintained parameters

if (MM_size > 1) {

  MM_moveParam = "offset";

  if (MM_keepMove.length > 0) {

    params = MM_keepMove.split("&");

    MM_keepMove = "";

    for (var i=0; i < params.length; i++) {

      var nextItem = params.substring(0,params.indexOf("="));

      if (nextItem.toLowerCase() != MM_moveParam) {

        MM_keepMove += "&" + params;

      }

    }

    if (MM_keepMove.length > 0) MM_keepMove = MM_keepMove.substring(1);

  }

}

 

// set the strings for the move to links

if (MM_keepMove.length > 0) MM_keepMove += "&";

var urlStr = Request.ServerVariables("URL") + "?" + MM_keepMove + MM_moveParam + "=";

MM_moveFirst = urlStr + "0";

MM_moveLast  = urlStr + "-1";

MM_moveNext  = urlStr + (MM_offset + MM_size);

MM_movePrev  = urlStr + Math.max(MM_offset - MM_size,0);

%>

<html>

<head>

<title>Cubo Media</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script language="JavaScript" type="text/JavaScript">

<!--

function MM_reloadPage(init) {  //reloads the window if Nav4 resized

  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {

    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}

  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();

}

MM_reloadPage(true);

//-->

</script>

<link href="link.css" rel="stylesheet" type="text/css">

</script>

<style type="text/css">BODY {

scrollbar-face-color: #E7E7E7; scrollbar-shadow-color: #E7E7E7; scrollbar-highlight-color: #E7E7E7; scrollbar-3dlight-color: #00000; scrollbar-darkshadow-color: #000000; scrollbar-arrow-color: #000000; scrollbar-base-color: #000000

}

</style>

</script>

</head>

 

<body bgcolor="#FFFFFF" text="#333333" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<div id="Layer1" style="position:absolute; left:253px; top:165px; width:468px; height:60px; z-index:1">

<iframe leftmargin=5 topmargin=5 marginWidth=0 marginHeight=0 src="iframe_publicidade.asp" frameBorder=0 width=468 height=60 scrolling=no></iframe></div>

<table width="780" height="796" border="0" cellpadding="0" cellspacing="0">

  <tr align="left" valign="top">

    <td height="115" colspan="2"><table width="780" height="92" border="0" cellpadding="0" cellspacing="0">

      <tr align="left" valign="top">

        <td width="237" height="115"><img src="layout/part1.jpg" width="237" height="115" border="0" usemap="#cubomedia"></td>

        <td width="545" height="115"><img src="layout/part2.jpg" width="545" height="115"></td>

      </tr>

    </table></td>

  </tr>

  <tr align="left" valign="top">

    <td width="237" rowspan="2" background="layout/pat6.jpg"><table width="237" border="0" cellspacing="0" cellpadding="0">

      <tr>

        <td width="237" height="281" align="left" valign="top" background="layout/part3.jpg"><table width="237" height="260" border="0" cellpadding="0" cellspacing="0">

          <tr>

            <td width="25" height="73"> </td>

            <td width="192"> </td>

            <td width="20"> </td>

          </tr>

          <tr>

            <td height="132"> </td>

            <td align="center" valign="middle"><iframe leftmargin=5 topmargin=5 marginWidth=0 marginHeight=0 src="iframe_destaque.asp" frameBorder=0 width=190 height=125 scrolling=no></iframe></td>

            <td> </td>

          </tr>

          <tr>

            <td> </td>

            <td> </td>

            <td> </td>

          </tr>

        </table></td>

      </tr>

      <tr>

        <td width="237" height="260" align="left" valign="top"><img src="layout/part5.jpg" width="237" height="260" border="0" usemap="#Menu" href="#"></td>

      </tr>

    </table></td>

    <td width="543" height="314"><table width="543" height="342" border="0" cellpadding="0" cellspacing="0">

      <tr>

        <td width="545" height="342" align="left" valign="top"><table width="545" height="307" border="0" cellpadding="0" cellspacing="0">

          <tr>

            <td height="132" align="left" valign="top"><table width="543" height="132" border="0" cellpadding="0" cellspacing="0">

              <tr align="left" valign="top">

                <td width="516" height="119" background="layout/publicidade.jpg"> </td>

                <td width="27" height="119"> </td>

              </tr>

            </table></td>

          </tr>

          <tr>

            <td height="173" align="left" valign="top"><table width="545" height="120" border="0" cellpadding="0" cellspacing="0">

              <tr align="left" valign="top">

                <td width="30" height="120"> </td>

                <td width="518"><table width="515" height="243" border="0" cellpadding="0" cellspacing="0">

                  <tr>

                    <td height="78" align="left" valign="top"><img src="layout/novidades/part1.jpg" width="513" height="78"></td>

                  </tr>

                  <tr>

                    <td height="142" align="center" valign="top" background="layout/novidades/part2.jpg"><table width="460" border="0" cellspacing="0" cellpadding="0">

                      <tr>

                        <td width="300" height="150" align="center" valign="middle"><iframe leftmargin=5 topmargin=5 marginWidth=0 marginHeight=0 src="iframe_novidades.asp" frameBorder=0 width=300 height=150 scrolling=no></iframe></td>

                      </tr>

                    </table></td>

                  </tr>

                  <tr>

                    <td height="23" align="left" valign="top"><img src="layout/novidades/part3.jpg" width="513" height="23"></td>

                  </tr>

                </table></td>

              </tr>

            </table></td>

          </tr>

        </table></td>

      </tr>

    </table></td>

  </tr>

  <tr align="left" valign="top">

    <td width="545"> </td>

  </tr>

  <tr align="left" valign="top">

    <td height="107" colspan="2"><table width="780" height="2" border="0" cellpadding="0" cellspacing="0">

      <tr align="left" valign="top">

        <td width="782" height="107" colspan="2"><img src="layout/part7.jpg" width="782" height="107"></td>

        </tr>

    </table></td>

  </tr>

</table>

<map name="Menu">

<area shape="poly" coords="70,48,67,41" href="#">

<area shape="poly" coords="65,37,64,30,69,29,74,28,80,26,86,25,91,25,97,25,100,30,104,29,116,29,123,26

 

,127,26,131,25,137,28,144,31,151,30,159,29,163,31,162,35,161,41,157,47,146,47,14

 

1,50,139,54,136,56,129,53,130,48,125,46,120,46,115,47,104,47,99,49,97,52,91,51,8

 

7,48,82,48,77,45,74,45,72,47,69,47,67,43" href="videoclipes.asp">

<area shape="poly" coords="109,34" href="#">

<area shape="poly" coords="75,61" href="#">

<area shape="poly" coords="80,51,83,49,88,49,90,52,92,56,96,56,100,53,105,52,110,52,114,55,119,58,123,

 

57,128,56,130,53,133,55,135,58,138,56,142,54,147,54,152,52,156,51,160,53,163,53,

 

167,56,172,56,179,57,179,62,177,66,175,70,173,71,169,69,168,72,165,75,160,74,159

 

,71,154,70,149,70,145,69,140,69,137,67,133,73,130,76,125,76,124,72,121,69,117,69

 

,115,70,111,70,109,73,107,77,103,76,97,70,94,70,90,70,85,70,79,69,76,70,73,68,72

 

,64,74,61,77,58,78,54" href="audiovideo.asp">

<area shape="poly" coords="90,80" href="#">

<area shape="poly" coords="95,77,97,75,101,77,104,80,109,78,111,76,112,75,116,75,121,77,124,81,130,79,

 

135,79,139,79,144,79,149,79,154,79,158,79,161,79,163,84,163,89,160,92,154,95,148

 

,94,138,94,133,95,129,94,124,94,119,94,114,95,113,98,108,99,102,100,101,96,101,9

 

2,98,94,93,94,89,93,87,90,87,86,89,82,93,81" href="softwares.asp">

<area shape="poly" coords="134,99" href="#">

<area shape="poly" coords="134,98,138,100,142,102,145,103,147,107,150,109,150,112,147,115,140,118,138,

 

123,135,122,131,119,127,117,123,117,119,118,117,121,113,125,107,124,107,119,109,

 

116,104,117,99,117,96,114,96,109,99,107,102,103,106,101,110,101,112,101,116,99,1

 

19,100,122,101,126,103,131,102" href="ajuda.asp">

<area shape="poly" coords="86,124" href="#">

<area shape="poly" coords="86,124,90,124,93,127,97,127,107,127,111,127,115,127,119,127,125,126,129,124

 

,134,124,137,126,142,128,141,132,138,138,132,141,128,141,120,141,115,142,108,142

 

,96,141,93,141,89,141,86,141,80,140,78,134,80,129,82,126" href="contato.asp">

</map>

<map name="cubomedia">

<area shape="rect" coords="124,9,245,121" href="index.asp">

</map>

</body>

</html>

<%

Recordset1.Close();

%>

:angry: ;)

 

ME AJUDEM SE PRECISAREM DO MEU E-MAIL É marcusvgl@msn.com

Compartilhar este post


Link para o post
Compartilhar em outros sites

Aqui senhor o INCLUDE

<%// FileName="Connection_odbc_conn_dsn.htm"// Type="ADO" // DesigntimeType="ADO"// HTTP="false"// Catalog=""// Schema=""var MM_cxClipes_STRING = "dsn=dataclipes;"%>

Compartilhar este post


Link para o post
Compartilhar em outros sites

ae o problema tha no dsn, ele num tah achandu ow entaum você naum especifico o driver certu dah uma olhada no dsn e v c num tem algo erradu, qualquer coisa posta novamenteespero ter ajudado

Compartilhar este post


Link para o post
Compartilhar em outros sites

Isso Funciona assim?

var Recordset1 = Server.CreateObject("ADODB.Recordset");

Estou realmente curioso.

 

Sempre vi assim:

set Recordset1 = Server.CreateObject("ADODB.Recordset");

Teste essa alteração e veja se funciona.

 

 

Valeu?

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.