Huitzilopochtli
Programmer
Hello
Please help with this! I have a small Access DB in the same directory as the following ASP file. Is there any thing wrong with this short code, because the server tells me:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/db/odbc_exmp.asp, line 9
<% Response.buffer = true %>
<html>
<head>
<title>Stardeveloper.com Database Tutorial</title>
</head>
<body>
<% Dim rs
Set rs = Server.CreateObject ("ADODB.Recordset"
rs.Open "names", "DSN=odbc_exmp",,, &H0200
While Not rs.EOF
Response.Write "ID : " & rs("id"
& "<br>"
Response.Write "First Name : " & rs("first_name"
& "<br>"
Response.Write "Last Name : " & rs("last_name"
& "<br>"
Response.Write "<br>"
rs.MoveNext
Wend
rs.Close
Set rs = Nothing %>
</body>
</html>
What's wrong with line 9? I have repeated the DNS steps and uploaded the files again!
Many thanks!
Please help with this! I have a small Access DB in the same directory as the following ASP file. Is there any thing wrong with this short code, because the server tells me:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/db/odbc_exmp.asp, line 9
<% Response.buffer = true %>
<html>
<head>
<title>Stardeveloper.com Database Tutorial</title>
</head>
<body>
<% Dim rs
Set rs = Server.CreateObject ("ADODB.Recordset"
rs.Open "names", "DSN=odbc_exmp",,, &H0200
While Not rs.EOF
Response.Write "ID : " & rs("id"
Response.Write "First Name : " & rs("first_name"
Response.Write "Last Name : " & rs("last_name"
Response.Write "<br>"
rs.MoveNext
Wend
rs.Close
Set rs = Nothing %>
</body>
</html>
What's wrong with line 9? I have repeated the DNS steps and uploaded the files again!
Many thanks!