473,770 Members | 7,287 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ODBC microsoft access driver

hello all,

im trying to connect to a microsoft access database from an ASP.NET web
form.
i keep getting the following error though:

ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver] Could not use
'(unknown)'; file already in use. ERROR [IM006] [Microsoft][ODBC Driver
Manager] Driver's SQLSetConnectAt tr failed ERROR [HY000]
[Microsoft][ODBC Microsoft Access Driver] Could not use '(unknown)';
file already in use.

i think its something to do with permissions and ive tried changing the
permissions on the folder that the mdb database is in (C:\Documents and
Settings\All Users\Documents ), but im still getting an error.ive been
tryin to fix this for the past week but nothing i do seems to work.

any help would be appreciated.

Feb 23 '06 #1
5 3913
I quickly learned access if NOT the DB to use for web applications. My
guess here is that you were testing your application and it bombed
somewhere in the middle, you tried it again and got this error right?
Because when your app bombed the first time it left the connection open
and also "locked" the database. You will have to wait several minutes
for the lock to be auto cleared by the server.

Here are a few reasons to NOT use access;
1. The locking issues that you are experiencing
2. Its unstable and easy to corrupt
3. Access has limited concurrent connections. If you have too many
users accessing it you will get errors.

If you can get mysql (there are free versions available) I would use
that. Its way faster than access, you can have many more concurrent
connections, and it's VERY stable. You can get a web interface that
allows you to do almost everything you could do through access, like
view rows, edit rows, delete rows, add columns, etc. I was a die hard
MS Access fan for small web sites myself but when those small websites
started getting a little more popular I started having major database
problems. I also had random problems with locking and tables being
corrupt.

Since I've changed everything over to MYSQL, I have had no problems,
and my sites performance was immediately boosted. I know there are
probably a dozen people that are going to reply back stating otherwise
but the facts don't lie, and my experience with both db's proves MYSQL
is a much better choice.

Jeremy Reid
http://hgtit.com

Feb 23 '06 #2

Access makes sense..in limited areas.

A User database with <100 people.. Sure use Access.

...

Your issues.

You need to have write priv's to both the mdb file and the ldb file. Which
I usually create a /db directory, and give the directory the privs.
Thats why when posting to hosting companies... they usually have a /db
directory that you MUST put your mdb files in.

check
www.connectionstrings.com

you want to use the ODEDBCONNECTION string, not ODBC also.

OLE DB, OleDbConnection (.NET)
a.. Standard security:

"Provider=Micro soft.Jet.OLEDB. 4.0;Data Source=\somepat h\mydb.mdb;User
Id=admin;Passwo rd=;"

b.. Workgroup (system database):

"Provider=Micro soft.Jet.OLEDB. 4.0;Data Source=\somepat h\mydb.mdb;Jet
OLEDB:System Database=system .mdw;"

c.. With password:

"Provider=Micro soft.Jet.OLEDB. 4.0;Data Source=\somepat h\mydb.mdb;Jet
OLEDB:Database Password=MyDbPa ssword;"
...

HOWEVER, you might consider MSDE.

check my blog
http://spaces.msn.com/sholliday/
12/16/2005 entry

...

I don't use Access anymore, since my hosting company is easy on the
budget...with Sql Server.

For small amounts of readonly data, I throw it in an Xml File.. and create a
strongly typed dataset.

For any real db access... I develop against MSDE, and either use it , or the
sql server my hosting company provides.

Its a little more startup time.. but the advantages of a "real" RDBMS over
access become apparently quickly.

...

<so*******@yaho o.com> wrote in message
news:11******** *************@g 14g2000cwa.goog legroups.com...
hello all,

im trying to connect to a microsoft access database from an ASP.NET web
form.
i keep getting the following error though:

ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver] Could not use
'(unknown)'; file already in use. ERROR [IM006] [Microsoft][ODBC Driver
Manager] Driver's SQLSetConnectAt tr failed ERROR [HY000]
[Microsoft][ODBC Microsoft Access Driver] Could not use '(unknown)';
file already in use.

i think its something to do with permissions and ive tried changing the
permissions on the folder that the mdb database is in (C:\Documents and
Settings\All Users\Documents ), but im still getting an error.ive been
tryin to fix this for the past week but nothing i do seems to work.

any help would be appreciated.

Feb 23 '06 #3
thanks for that. but, at the risk of sounding stupid, what exactly is a
/db directory?.
thanks for the help.

Feb 24 '06 #4
The /db directory is simply a folder on your site where the permissions
are set for that folder and all its files to allow special access. The
"db" stands for database. You could name it whatever you want, the
important part is that usually that folder has the specific permissions
set. Like 'sloan' descibed above it would be for your MDB and your LDB
files that are associated with MS Access databases.

Is using a database like SQL or mySQL out of the question for your
application?

Jeremy Reid
http://hgtit.com

Feb 24 '06 #5
not really, but im approaching my project deadline and mite be a bit
tough to change over now. Also i have to use ODBC i think...

Mar 3 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
17573
by: DJJ | last post by:
I am using the MySQL ODBC 3.51 driver to link three relatively small MySQL tables to a Microsoft Access 2003 database. I am finding that the data from the MySQL tables takes a hell of a long time to load making any kind linkage with my Access data virtually useless. I have the MySQL driver setup in as a USER DSN. The MySQL data is sitting out on a server and the Access database is running locally. The network connection is very...
8
6386
by: Kona | last post by:
Hello, I would like to access a UDB database on a Sun Solaris 5.8. The client is a XP station. When I list the default odbc drivers, I found "Microsoft ODBC Driver for DB2". But I think it can not be used to access a UDB DB on Unix machine. So where can I find a ODBC driver ? Thank you
4
5650
by: Andreas Lauffer | last post by:
Can anyone tell me advantages / disadvantages of DataDirect Server Wire ODBC-driver? Any experiences? What about redistribution? Andreas Lauffer, easySoft. GmbH, Germany
1
8738
by: MLH | last post by:
I'm running XP. Is it required that a given ODBC driver be selected or set somehow as a default driver? Look at this... Here's the error: Error: ODBC call failed... Datasource not found and no default ODBC driver specified. I think I can work my way around the Datasource, but the default driver thing (#0) - dunno?
1
3389
by: Salad | last post by:
Hi: I am developing an application using FoxPro 2.x tables. My client has AccessXP. AccessXP uses Visual Foxpro ODBC to connect to tables. It does not accept the ISAM Foxpro driver used in A97. I have a problem that when I link to the tables on the client machine AccessXP does not recognize boolean values in the FoxPro tables. I assume this is due to the ODBC driver. I'd like to test this out on my development machine. I...
4
3574
by: Dave | last post by:
Hey guys, I have an ODBC problem that has me stumped. I wrote a VBA script to run in Microsoft Excel that pulls data out of an application using that application's ODBC driver and puts it into Excel. I am trying to translate the same program over to Microsoft Access and I ran into a problem. Access locks up if the data I am querying for is not present in the database. To retrieve data from the database of the application, my Excel...
0
755
by: bazzer | last post by:
hey, i am using visual basic.net 2003 and have an ASP.NET webform application thats accessing a microsoft access 2003 database. i kept getting the following error when i tried to run it: ERROR General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x8fc Thread 0x934 DBC 0x437b94 Jet'. ERROR Driver's SQLSetConnectAttr failed ERROR General error Unable to open registry key 'Temporary (volatile) Jet DSN...
0
12067
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in '/CinemaBookingSystem' Application. -------------------------------------------------------------------------------- ERROR General error Unable to open registry key 'Temporary (volatile) Jet DSN for process
8
9637
by: Greg Strong | last post by:
Hello All, The short questions are 1 Do you know how to make DSN connection close in Access to Oracle 10g Express Edition? &/or 2 Do you know how to make a DSN-less pass-through query work from
0
9592
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9425
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10230
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10058
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10004
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8886
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7416
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
2
3576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2817
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.