Hi All:
If I want to connect to an Access data base, the aspx page and the database
are located in the same folder, how would I refere to the database?
I got an error when refere to an Access database if the string connection
does not provide absolute path.
eg:
OleDbConnection myConnection = new OleDbConnection (
"PROVIDER=Micro soft.Jet.OLEDB. 4.0;DATA Source=authors. mdb" );
then I got the following error:
Exception Details: System.Data.Ole Db.OleDbExcepti on: Could not find file
'C:\WINNT\syste m32\authors.mdb '.
even my authors.mdb is not located at C:\WINNT\system 32 folder.
TIA.
Hai
If I want to connect to an Access data base, the aspx page and the database
are located in the same folder, how would I refere to the database?
I got an error when refere to an Access database if the string connection
does not provide absolute path.
eg:
OleDbConnection myConnection = new OleDbConnection (
"PROVIDER=Micro soft.Jet.OLEDB. 4.0;DATA Source=authors. mdb" );
then I got the following error:
Exception Details: System.Data.Ole Db.OleDbExcepti on: Could not find file
'C:\WINNT\syste m32\authors.mdb '.
even my authors.mdb is not located at C:\WINNT\system 32 folder.
TIA.
Hai
Comment