473,408 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Unpsecified Error with ODBC Connections

This happens a lot to my databases. I store them at the root of my
developing files, i.e. c:\My Projects\Proj1\database.mdb. Randomly, the
security settings on this database will drop to the basic secutiry, myself
and SYSTEM. I need IUSR on it so I can access it through my ASP pages... I
get errors like this:

Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine
cannot open the file '(unknown)'. It is already opened exclusively by
another user, or you need permission to view its data.
/amr/common/adovbs.inc, line 4

and

Provider (0x80004005)
Unspecified error
/amr/common/adovbs.inc, line 4

and line 4 is this

2 Dim Connect
3 Set Connect = Server.CreateObject("ADODB.Connection")
4 Connect.Open "dsn name"

I will reset the permissions, then the ASP script will access the database
once, like read or write, then this will happen again. I have to reset the
permissions on the database file. Sometimes i'll have to do this 3 or 4
times until the permissions stick. It only happens on a few of my projects,
not all of them. Also, what helps at times, is within IIS, to check server
extensions. This seems to do something to it to help it to work.

Any Ideas?

--
David Lozzi
Associated Business & Technology Group
www.associatedbtg.com

I should've known that....but I had a brain fart.
Jul 19 '05 #1
1 3102
This can happen when you compact the databases: the security settings for
IUSR can be lost.

FWIW, you should stop using ODBC and swtich to using the native Jet OLEDB
provider instead. See www.connectionstrings.com. The MSDASQL provider (the
provider used for ODBC drivers) has been deprecated by MS, and is not
recommended to be used. Granted, that won't fix this particular problem, but
....

HTH,
Bob Barrows

..David Lozzi wrote:
This happens a lot to my databases. I store them at the root of my
developing files, i.e. c:\My Projects\Proj1\database.mdb. Randomly,
the security settings on this database will drop to the basic
secutiry, myself and SYSTEM. I need IUSR on it so I can access it
through my ASP pages... I get errors like this:

Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database
engine cannot open the file '(unknown)'. It is already opened
exclusively by another user, or you need permission to view its data.
/amr/common/adovbs.inc, line 4

and

Provider (0x80004005)
Unspecified error
/amr/common/adovbs.inc, line 4

and line 4 is this

2 Dim Connect
3 Set Connect = Server.CreateObject("ADODB.Connection")
4 Connect.Open "dsn name"

I will reset the permissions, then the ASP script will access the
database once, like read or write, then this will happen again. I
have to reset the permissions on the database file. Sometimes i'll
have to do this 3 or 4 times until the permissions stick. It only
happens on a few of my projects, not all of them. Also, what helps at
times, is within IIS, to check server extensions. This seems to do
something to it to help it to work.

Any Ideas?

Jul 19 '05 #2

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

Similar topics

0
by: ss | last post by:
Dear All, I use ODBC to connect php (installed on linux) to a MS SQL Server 2000 database. I use iODBC and Freetds. Everything looks fine, until I try to open a multiple connection at once...
12
by: Robert Stearns | last post by:
Note: deliberately xposted to the two newsgroups which seem applicable, after reading several hundred messages from various php groups. Randomly my application gets the message: Warning:...
12
by: Grahammer | last post by:
For some reason I am getting an error when trying to open a recordset on an Access database on my Win2K3 machine from my INDEX.ASP page, but the same code accesses the database fine when coming...
2
by: Patrick | last post by:
I had a new production envrionment running ASP pages, and after 4 days in production, I am getting HTTP1.1/ New Application Failed error. Old environment which worked OK: Windows 2000 Server...
3
by: Darren | last post by:
Hi Oracle experts, We are getting this error on our Oracle system. I've searched Google, MSDN, Oracle tech support and newsgroups to death, but our DBAs seem to have already applied all the...
0
by: MrPhil | last post by:
(SQL 2K SP3a on W2K. VFP 6 data lives on W2K. GIGABIT BACKBONE, gig cards on the data servers) I'm sure anyone who attempts to retrieve or alter FP/VFP data through a SQL link server will...
2
by: iainmck | last post by:
I have been getting this error on simple ASP code on my web site Microsoft OLE DB Provider for ODBC Drivers error '80004005' SQL Server does not exist or access denied. The Web Server is...
0
by: Yelena Varshal | last post by:
Hello, I am using ODBC to access Microsoft Access database. I use just generic ADO code. I don't have problems opening multiple connections from the same page on the development server but the...
0
by: shamirza | last post by:
ADO.Net Making the Connection: Accessing Your Database using ADO.NET Data Access Namespaces Within the .NET framework class library (FCL) version 1.1, there are five third-level namespaces that...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.