// open connection to the database
objConn = Server.CreateObject("ADODB.Connection"
;
objConn.ConnectionString = "DSN=pb";
objConn.Open();
// create a recordset object
datePublished = this.month + this.year;
objRS = Server.CreateObject("ADODB.Recordset"
;
strSQL = "SELECT * FROM Magazine WHERE DatePublished = '" + datePublished + "'";
objRS.Open(strSQL, objConn);
this.datePublished = objRS("DatePublished"
.value;
this.yearPublished = objRS("YearPublished"
.value;
this.MonthPublished = objRS("MonthPublished"
.value;
this.Volume = objRS("Volume"
.value;
this.editionNumber = objRS("EditionNumber"
.value;
this.cover = objRS("Cover"
.value;
this.condition = objRS("Condition"
.value;
this.miscellanous = objRS("Miscellanous"
.value;
this.personOnCover = objRS("PersonOnCover"
.value;
this.needsReplaced = objRS("NeedsReplaced"
.value;
This is the error IE is giving me.
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services
--------------------------------------------------------------------------------
Technical Information (for support personnel)
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] '(unknown)' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
/currentMag.asp, line 56
Line 56 is objConn.Open();
Then I had a crash of sorts and had to reinstall Win2K and IIS. All of my other programs, one in Visual C++ and one in Java have no trouble at all with the DSN
objConn = Server.CreateObject("ADODB.Connection"
objConn.ConnectionString = "DSN=pb";
objConn.Open();
// create a recordset object
datePublished = this.month + this.year;
objRS = Server.CreateObject("ADODB.Recordset"
strSQL = "SELECT * FROM Magazine WHERE DatePublished = '" + datePublished + "'";
objRS.Open(strSQL, objConn);
this.datePublished = objRS("DatePublished"
this.yearPublished = objRS("YearPublished"
this.MonthPublished = objRS("MonthPublished"
this.Volume = objRS("Volume"
this.editionNumber = objRS("EditionNumber"
this.cover = objRS("Cover"
this.condition = objRS("Condition"
this.miscellanous = objRS("Miscellanous"
this.personOnCover = objRS("PersonOnCover"
this.needsReplaced = objRS("NeedsReplaced"
This is the error IE is giving me.
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services
--------------------------------------------------------------------------------
Technical Information (for support personnel)
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] '(unknown)' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
/currentMag.asp, line 56
Line 56 is objConn.Open();
Then I had a crash of sorts and had to reinstall Win2K and IIS. All of my other programs, one in Visual C++ and one in Java have no trouble at all with the DSN