Cam
05-14-2003, 03:17 AM
Hi all
I get the following message from running an ad rotation script:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Cannot open database '(unknown)'. It may not be a database that your application recognizes, or the file may be corrupt.
/cgi-bin/banners.asp, line 5
Line 5 is a DSN-less connection.
The weird thing is, this error is very sporadic. The script worked fine when the page first went up and works fine locally (PWS) with the same database the error says is corrupted. Online, the error seems to come and go. I replaced the include that contains the banner script to keep the page up and periodically checked the include directly. Suddenly, it worked fine, without me doing anything. This has happened once before, again resolving spontaneously.
The site is hosted virtually and the ISP was unable to reproduce the error the first time this happened. The database is relatively small (200k) and contains the ad links, click counts etc.
Any ideas what could be causing this? I'm at a bit of a loss as the scripting seems fine...
Cheers
Cam
I get the following message from running an ad rotation script:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Cannot open database '(unknown)'. It may not be a database that your application recognizes, or the file may be corrupt.
/cgi-bin/banners.asp, line 5
Line 5 is a DSN-less connection.
The weird thing is, this error is very sporadic. The script worked fine when the page first went up and works fine locally (PWS) with the same database the error says is corrupted. Online, the error seems to come and go. I replaced the include that contains the banner script to keep the page up and periodically checked the include directly. Suddenly, it worked fine, without me doing anything. This has happened once before, again resolving spontaneously.
The site is hosted virtually and the ISP was unable to reproduce the error the first time this happened. The database is relatively small (200k) and contains the ad links, click counts etc.
Any ideas what could be causing this? I'm at a bit of a loss as the scripting seems fine...
Cheers
Cam