Re: Access Query w/VBScript
- From: "Bob" <bob_orta@xxxxxxxxxxxxx>
- Date: Tue, 14 Jun 2005 17:37:17 GMT
I have been usinging a Windows Remote Server to exercise the ASP scripts -
was waiting for one of the universitie's departments to provide us web space
on their IIS server. Well, we have got the space now. Of course, none of
the scripts (including the one I have posted) now work.
More information: Some ASP pages will be accessing Access data and others
MySql - both databases will reside on servers, but not the web server. I
have experimented with the code for connecting to MySql, but have not been
successful. I have tried using a DSN and DSN-less with no luck. Below is
the code and error messages.
<%Option Explicit%>
<HTML>
<HEAD>
<TITLE>Testing our connection</TITLE>
</HEAD>
<BODY>
<%
Dim oConn, oRS
Set oConn = Server.CreateObject("ADODB.Connection")
set oRS = Server.CreateObject("ADODB.Recordset")
oConn.Open "DSN=pers_dbOdbc"
oRS.Open "tblEmployees", oConn
While Not oRS.EOF
Response.Write oRS("LastName") & ", "
Response.Write oRS("FirstName") & "<BR>"
oRS.MoveNext
Wend
oRS.Close
oConn.Close
Set oRS = Nothing
Set oConn = Nothing
%>
</BODY>
</HTML>
The DSN(UID/PASSWORD not really *):
[ODBC]
DRIVER=MySQL ODBC 3.51 Driver
UID=*****
STMT=
OPTION=2
PORT=
PASSWORD=*****
SERVER=asthma.arc.arizona.edu
DATABASE=theDbNameHere
DESC=
The error message:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Data source name not found and no default
driver specified
/temp.asp, line 12
Thanks for looking.
.
- Follow-Ups:
- Re: Access Query w/VBScript
- From: Bob Barrows [MVP]
- Re: Access Query w/VBScript
- References:
- Re: Access Query w/VBScript
- From: Bob Barrows [MVP]
- Re: Access Query w/VBScript
- From: Bob Orta
- Re: Access Query w/VBScript
- From: Bob Barrows [MVP]
- Re: Access Query w/VBScript
- From: Bob
- Re: Access Query w/VBScript
- From: Bob Barrows [MVP]
- Re: Access Query w/VBScript
- From: Bob
- Re: Access Query w/VBScript
- From: Bob Barrows [MVP]
- Re: Access Query w/VBScript
- Prev by Date: If ckbxlistA Item1 ckd, show ckbxlistB
- Next by Date: Re: Access Query w/VBScript
- Previous by thread: Re: Access Query w/VBScript
- Next by thread: Re: Access Query w/VBScript
- Index(es):
Relevant Pages
|
|