MS Access Database

ms access , website , remote mc Edison, United States
  • 11 years ago
    hi, i have an access db in a website that i'm trying to connect to and access. the connection string looks like this: var objConnection = new ActiveXObject("ADODB.Connection"); objConnection.Open("Provider = Microsoft.Jet.OLEDB.4.0;Data Source = temp.mdb"); this works when it's run on a my local machine with the file path specified like (Data Source = c:\\myfolder\\temp.mdb). however, i like to find out how data source should be referenced in a website? thanks.
  • 11 years ago
    If you reference in a website, you don't have to include an actual path. If you link to test.mdb it means the database is in your current directory (the directory of the active page). so if it's somewhere else try /databases/test.mdb or perhaps ../test.mdb (this brings you back a folder)

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“My definition of an expert in any field is a person who knows enough about what's really going on to be scared.” - P. J. Plauger