Forum Moderators: open

Message Too Old, No Replies

Newbie: Access database connection problems

"It is already opened exclusively by another user, or you need permission"

         

rockym

1:33 am on Mar 23, 2004 (gmt 0)

10+ Year Member



I'm having problems connecting to a test DB i've set up on the remote server (accessed via windows remote desktop utility) and wondering if anyone can shed light.

The error I get from the page I've set up to test the connection is:

"The Microsoft Jet database engine cannot open the file '(unknown)'. It is already opened exclusively by another user, or you need permission to view its data."

Doing some research I saw this solution ...

"This is the server side problem. You need to contact your ISP about this problem. To fix this problem on server, NT administrator needs to set the database to read/write attribute for browser."

Now, i have no idea if this is applicable or not, but if it is, how do i do this (set the attributes of the DB)?
Otherwise, what could the problem/solution be?
I set up a DSN for the connection thinking that that may simplify things, but it is still the same problem.

A disclaimer: I am very very new to asp/database programming, so if an answer seems too obvious to mention...it just may be right (i have no idea what i'm doing! ^^).

TIA!

Mosha

1:59 am on Mar 23, 2004 (gmt 0)

10+ Year Member



I had the same problem when i started using ASP, my database was readonly,

Are you using XP? if so then this is how i solved the problem (after some painstaking research)

1st.....

navigate to the folder where the database is stored, and then on the top bar go to

Tools.....Folder Options......View......

Then navigate to the bottom of the list, there should be an option 'Use Simple file sharing'
this should be checked, but you want it UNCHECKED. click ok.

What this does is create a new Tab called 'security' when you right click in a window where
your files are stored.

2nd......

Right click in the window, Properties, click the Security Tab

In the window there will be a section called 'Group or user names' click on your name, then
in the window below titled 'Permissions to administrators' you will see what permissions you have.

When i did first looked, i didn't even have read/write permissions on my own PC

What you want to do is allow yourself full control. This solved it for me, if this is the same for you then it might well solve it for you
too, you might need to allow full control or whatever you wish for the other names in there aswell.

Hope this helps, if it doesn't you can easily put them all back to what they were

Tom

rockym

5:28 am on Mar 23, 2004 (gmt 0)

10+ Year Member



Beautiful.
Thanks.
You led me on the track to solving it!
It was just that i hadn't enabled internet users to access the file!
D'oh!
Once i gave permissions to IUSRs ... now my prob is solved.
Thanks for the input!