Solved

"Could not use '(unknown)'; file already in use."?????

Posted on 2004-04-01
6
1,594 Views
Last Modified: 2007-12-19
I am getting the following error:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Could not use '(unknown)'; file already in use.

Using ASP:
I am assuming that I am somehow opening the .MDB exclusively but I can't find where (or I'm wrong :) ).
Checked the DSN in ODBC manager and it is not set to exclusive.

This is how I'm opening it:
    set conn = createobject("adodb.connection")
    conn.connectionstring="Provider=MSDASQL.1;Persist Security Info=False;Data Source=Test"
    conn.open


Thanks!
   - Marc
0
Comment
Question by:MarcGraff
  • 3
  • 2
6 Comments
 
LVL 8

Expert Comment

by:dds110
ID: 10734873
you're using the wrong connection string for Access.

Try this one:

adoconn.connectionstring="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=DatabasePathAndName.mdb;Jet OLEDB:Database Password=;"
0
 
LVL 8

Accepted Solution

by:
dds110 earned 500 total points
ID: 10734889
Here's an example from one of my pages:

Dim adoconn

Set adoconn = Server.createobject("ADODB.Connection")

adoconn.connectionstring="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\jcknt01\JCSC\Db\webUsers.mdb;Jet OLEDB:Database Password=;"
0
 
LVL 6

Expert Comment

by:BubbaisBest
ID: 10734894
Marc,

It sounds like 1 of 2 things.  First is the database is open somewhere with MS Access.  If you find that then you can just close the file and be okay.  The 2nd thing is that a page didn't close everything properly.  If this is the case, make a copy of the database, delete the current one, and rename the copy back to the original name.  

Good luck,
Bubs
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
LVL 8

Expert Comment

by:dds110
ID: 10734903
try this site for more information on connection strings

http://www.connectionstrings.com/
0
 
LVL 6

Expert Comment

by:BubbaisBest
ID: 10734956
dds110 makes an excellent point as well.  Try his first.  bubs
0
 
LVL 1

Author Comment

by:MarcGraff
ID: 10782567
Thanks! And sorry for the wait!

   - Marc
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question