MarkGordon
Programmer
Hi All,
I just setup a development IIS 5.0 server on my XP Professional OS. I also setup a test MS Access Database in a subdirectory of the web server. I went through the process of setting up an ODBC Connection through the ODBC Connection Wizard by adding a User DSN, calling it "Music".
I referred to this database in my ASP script as follows:
<%
Set Catalog=Server.CreateObject("ADODB.Recordset"
Catalog.open "SELECT * FROM Catalog", "DSN=Music"
Do WHILE NOT Catalog.EOF
Response.Write Catalog("Title" & "<p>"
Catalog.MoveNext
Loop
%>
I saved this file as a "SQL_TEST.asp" page in the same directory that the database (Music.mdb) resides in.
The problem is when I try to open this page in the browser, I get the following error message (MicroSoftly Cryptic as usual):
--------------------------------------
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/development/ABG_ASP/SQL_TEST.asp, line 9
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
Page:
GET /development/ABG_ASP/SQL_TEST.asp
---------------------------------------------
Any thoughts as to where I should be looking, or maybe I missed a step or two?
My IIS shows the Default ASP Language as VBSCript.
Thank you for taking the time to help me with this question.
Mark Gordon
I just setup a development IIS 5.0 server on my XP Professional OS. I also setup a test MS Access Database in a subdirectory of the web server. I went through the process of setting up an ODBC Connection through the ODBC Connection Wizard by adding a User DSN, calling it "Music".
I referred to this database in my ASP script as follows:
<%
Set Catalog=Server.CreateObject("ADODB.Recordset"
Catalog.open "SELECT * FROM Catalog", "DSN=Music"
Do WHILE NOT Catalog.EOF
Response.Write Catalog("Title" & "<p>"
Catalog.MoveNext
Loop
%>
I saved this file as a "SQL_TEST.asp" page in the same directory that the database (Music.mdb) resides in.
The problem is when I try to open this page in the browser, I get the following error message (MicroSoftly Cryptic as usual):
--------------------------------------
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/development/ABG_ASP/SQL_TEST.asp, line 9
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
Page:
GET /development/ABG_ASP/SQL_TEST.asp
---------------------------------------------
Any thoughts as to where I should be looking, or maybe I missed a step or two?
My IIS shows the Default ASP Language as VBSCript.
Thank you for taking the time to help me with this question.
Mark Gordon