Results 1 to 3 of 3

Thread: Accessing password protected MS ACCESS database

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    28

    Question

    Help! I am trying to access a “standalone” Microsoft Access database over the internet through a simple ADO connection. The following code works just fine. Note that the database is stored at db_location which is just some valid location for an Access database and that the database is not password protected.

    db_location=”some database location”
    Set db = Server.CreateObject("ADODB.Connection")
    db.ConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51;Data Source=" & session("db_location")

    Now, when I go into the database and add a password, I get errors when I try to access it over the internet regardless of the many different variations that I try for the connection string. A few are shown below.

    db_location=”some database location”
    Set db = Server.CreateObject("ADODB.Connection")
    db.ConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51;Data Source=" & session("db_location") & _
    ";User Id=;password=c5sap"

    Error:
    Microsoft JET Database Engine error '80004005'
    Can't start your application. The workgroup information file is missing or opened exclusively by another user.
    (Do I have to have a workgroup info file with users/passwords just because I’ve added a password to the database????)

    db_location=”some database location”
    db.ConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51;Data Source=” & session(db_location”) & _ “PWD=c5sap"

    Error:
    Microsoft JET Database Engine error '80004005'
    Couldn't find installable ISAM.


    Any info would be greatly appreciated.


  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    Try this as your connection string:

    Provider=Microsoft.Jet.OLEDB.3.51;Data Source=MyDB.mdb;Jet OLEDB:Database Password=password;

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    28
    Thanks very much Clunietp. Worked like a charm.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width