We’re reviewing the code of Classic ASP application.
In the code that we’re reviewing we see the following string:
Dim con as new ADODB.Connection
con.Open "SomeName"
...
The project ASP files are stored in the project folder root and the App_Data contains the file SomeName.mdb
We didn’t get any guidelines about any additional data sources set up or some application settings, and when the con.Open “SomeName” is called – it crashes.
What should be done so the con.Open “SomeName” would actually open the \App_Data\SomeName.mdb?
It is possible that
SomeNameis an ODBC data source.Try replacing it with:
"DRIVER={Microsoft Access Driver (*.mdb)};DBQ=App_Data\SomeName.mdb;"