Hi guys to give it a little update: I still cant get it too work so i decided to post my code maybe some1 can give me a hand: I would be so thankfull
The page that uses the Database looks like this
Code:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>
<!--#include file="Connections/gb.asp" -->
<%
var rsGB_cmd = Server.CreateObject ("ADODB.Command");
rsGB_cmd.ActiveConnection = MM_gb_STRING;
rsGB_cmd.CommandText = "SELECT * FROM Guestbook";
rsGB_cmd.Prepared = true;
var rsGB = rsGB_cmd.Execute();
var rsGB_numRows = 0;
%>
<%
var Repeat1__numRows = 10;
var Repeat1__index = 0;
rsGB_numRows += Repeat1__numRows;
%>
The connection looks like this
Code:
<%
// FileName="Connection_odbc_conn_dsn.htm"
// Type="ADO"
// DesigntimeType="ADO"
// HTTP="false"
// Catalog=""
// Schema=""
var MM_gb_STRING = "dsn=Guestbook;"
strConnection = "DRIVER=Microsoft Access Driver(*.mdb);DBQ=" & Server.MapPath("/twentyonedays/db/guestbook2000.mdb")
%>
And this is the error i get
Code:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/twentyonedays/Connection test.asp, line 5
I am using no password for testing purpose now.
Bookmarks