Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2004-04-01
6
Medium Priority
?
1,622 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 2000 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
Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

 
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
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…

598 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