|
-
Aug 30th, 2000, 10:00 AM
#1
Thread Starter
Junior Member
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.
-
Aug 31st, 2000, 06:36 AM
#2
Hyperactive Member
Hi hall,
Try this
Connection.Provider = "Microsoft.Jet.OLEDB.4.0"
Connection.Properties("Data Source") = database path
Connection.Properties("Jet OLEDB atabase Password") = dbpassword
Connection.Open
Hope this solves your problem.
-
Sep 1st, 2000, 05:46 AM
#3
Thread Starter
Junior Member
Thanks very much msdnexpert!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|