PDA

Click to See Complete Forum and Search --> : ADO giving me problems


PaulB
Jan 17th, 2000, 08:02 PM
Hi

I have almost competed an application for database access.

The program works perfectly on my computer, but if I run it on an other computer I get the following error...

The Microsoft Jet database engine cannot open the file 'E:\shared\procedure.mdb'. It is already opened exclusively by another user, or you need permission to view its data.

The database isn't open by another user exclusively or otherwise. There are no permissions set for it and the other computers have full read/write access to the database. The database doesn't have a password or anything like that.

The program was made with VB6 Pro with SP3 installed.


I would appreciate any help given.

Thanks!

jkurpias
Jan 18th, 2000, 04:32 AM
Is E:\shared\procedure.mdb a hard disk or a CD?

I use a CD burner to move large apps to my clients' workstations without a setup program. When I copy files from a burned CD, they are all Read Only and unless I change the file properties, I get the same error.

PaulB
Jan 18th, 2000, 06:16 AM
Thanks for replying.

My database is not read-only.

The E:\shared... etc. is a net work drive.

But the same thing happens if I copy the database on to the C: drive and point the ADO control at it.

The error appears at a point in my program which refreshes it after giving it an SQL string...

adoProcedure.RecordSource = "SELECT id, desc, qty FROM procedures ORDER BY desc"
adoProcedure.CommandType = AdCmdText
adoProcedure.Refresh

The error occurs on the last line.

Clunietp
Jan 18th, 2000, 11:50 AM
Is your database read only?

Also check out this link: http://support.microsoft.com/support/kb/articles/Q195/4/75.ASP?LNG=ENG&SA=ALLKB

Clunietp
Jan 19th, 2000, 12:35 PM
You said that it was a network drive....does the user have WRITE permission on that drive? Write permission is needed to create the locking file (ldb file), and if it can't be created, you will get that error....check with your server admin

PaulB
Jan 20th, 2000, 02:09 AM
Hi Clunietp,

I am the network administrator, and all the computers on the network have full read and write permissions to that particualr drive.

Thanks fro replying though.

Any other possible solutions?

Gerald
Jan 20th, 2000, 03:58 AM
Paul,

Is it possible that somewhere else in the application there was a use exclusive connection established that was not closed?

Do you by chance have user level security on the database through a workgroup file (*.mdw)?

Gerald

Rwhite
Jan 20th, 2000, 05:36 AM
Just a thought, try setting the "Cursor Type" as "adOpenKeyset" and the "LockType" as "adLockOptimistic" it should allow multi user access!

Jan 20th, 2000, 08:57 PM
USE DAO INSTEAD