Solved

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

Posted on 2004-04-01
6
1,598 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

734 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