|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
MDB in password protected directory
Hi <br>I use ASP , ADO <br>I have an access file in a password protected directory.. when I use the connection string : <br><br>strCon="Data source=" & server.MapPath("FilePath/FileName.mdb") & ";Provider=Microsoft.jet.oledb.4.0;Jet OLEDB
atabase Password=MYPASS;" <br><br>I get the error : <br><br>Microsoft JET Database Engine error '80004005' <br>The Microsoft Jet database engine cannot open the file 'FilePath/FileName.mdb'. It is already opened exclusively by another user, or you need permission to view its data. <br><br>How can I include the Directory username and password in the connection string ? |
|
#2
|
|||
|
|||
|
You can't!
Even worse you have to give RWX (Read, Write, Execute) permissions for everybody who wants to open the db (ususally we end up with Full Control Everyone. Yet one more reason to not use MS Access. This is because Access creates the lockfile MyDBName.LDB in the same directory and hence you must be allowed to do so. The pwd you supply is the database pwd for a database user and not the one required by NT (or Win2k). |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft SQL Server > MDB in password protected directory |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|