I have a page, list.asp, that retrieves information from an access database and displays it for the user. After moving to a new server, i get the following error:
Technical Information (for support personnel)
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/photosite/admin/list.asp, line 40
Here is the code:
I have set up the ODBC connection with the msacess driver, as a system DSN named EMailList, and have given the proper permissions as far as i can tell.
any suggestions for solution would be appreciated.
Gary
Technical Information (for support personnel)
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/photosite/admin/list.asp, line 40
Here is the code:
Code:
<% LANGUAGE="VBSCRIPT" %>
<% response.buffer = True%>
<!-- #INCLUDE FILE="../DataStore.inc" -->
<!-- #INCLUDE FILE="../adovbs.inc" -->
<!-- #INCLUDE FILE = "security.inc" -->
<%
'this page lists the current accounts
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Current Accounts</title>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
</head>
<body>
<p align="center"><b><font face="Verdana" color="#282484">[Current Users]</font></b></p>
<div align="center"><center>
<table border="2" cellpadding="2" cellspacing="0" bgcolor="#FFFFFF" bordercolor="#000000"
bordercolorlight="#000000" bordercolordark="#000000">
<tr>
<td bgcolor="#282484"><p align="center"><b>
<font color="#FFFF99" face="Verdana" style="font-size: 12px">E-Mail Address</font></b></td>
<td bgcolor="#282484"><p align="center"><b>
<font color="#FFFF99" face="Verdana" style="font-size: 12px">Name</font></b></td>
<td bgcolor="#282484"><p align="center"><b>
<font color="#FFFF99" face="Verdana" style="font-size: 12px">Delete User</font></b></td>
</tr>
<%
'declare variables
Dim objRec 'recordset object
'create the recordset object
Set objRec = Server.CreateObject ("ADODB.Recordset")
'now open it
objRec.open "EMailList", strConnect, adOpenKeyset, _
adLockReadOnly, adCmdTable
'loop once through the records
While Not objRec.EOF
'display the e-mail address in the table
Response.Write("<tr><td><p align=""center""><a href=""mailto:")
Response.Write(objRec("EMail"))
Response.Write(""">")
Response.Write(objRec("EMail"))
'display the Name in the table
Response.Write("</a></td><td><p align=""center""><a href=""mailto:")
Response.Write(objRec("Name"))
Response.Write(""">")
Response.Write(objRec("Name"))
'put a link to the delete script to delete the user
Response.Write("</a></td><td><p align=""center""><a href=""delete.asp?id=")
Response.Write(objRec("ID"))
Response.Write("""><u><font color=""#FF0000"">X</font></u></a></td></tr>")
'go to the next record
objRec.MoveNext
Wend
'clean everything up
objRec.Close
Set objRec = Nothing
%>
</table>
</center></div>
</body>
</html>
I have set up the ODBC connection with the msacess driver, as a system DSN named EMailList, and have given the proper permissions as far as i can tell.
any suggestions for solution would be appreciated.
Gary