Community discussion forum

MS Access Database

  • 8 months 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.
    Post was edited on 16/03/2009 17:08:41 Report abuse
  • 8 months 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).

We'd love to hear what you think! Submit ideas or give us feedback