I have an Access 97 DB called employees.mdb within a NT security type
folder. Other users have write privileges to this document to make
updates. This Access DB is only used for an ASP called employee.asp
that's within the same folder. Here's the connection string example:
<%@ Language=VBScri pt %>
<% Dim my_conn, rs
ConnString = "DRIVER={Micros oft Access Driver (*.mdb)}; DBQ="
& Server.MapPath( "employees.mdb" )
Set my_conn = Server.CreateOb ject("ADODB.Con nection")
my_conn.Open ConnString
set rs = server.CreateOb ject("ADODB.Rec ordset") %>
This asp has been working without major problems for about 2 years.
On most occasions, a user can open the Access DB, make changes and
close it without any problems. However, on two occasions, a problem
has occurred after a user opened the Access DB. My only guess is that
someone accesses the employee.asp, which queries the Access DB when
the Access DB is opened and being changed. Once this occurs, the
employee.asp delivers an error code and complains about the connection
line of "my_conn.Op en ConnString".
Any idea why this is happening? To correct the problem, I can just
rename the employees.mdb to another name like employees1.mdb and then
change connection string in the employee.asp to "ConnString =
"DRIVER={Micros oft Access Driver (*.mdb)}; DBQ=" &
Server.MapPath( "employees1.mdb ")", from employees.mdb
Anyway, I would like the users to still have the ability to be able to
modify the MS Access DB if possible so that I don't have yet another
thing to do.
Any thoughts?
Thanks 5 1359
ziggs wrote: I have an Access 97 DB called employees.mdb within a NT security type folder. Other users have write privileges to this document to make updates. This Access DB is only used for an ASP called employee.asp that's within the same folder. Here's the connection string example:
<%@ Language=VBScri pt %> <% Dim my_conn, rs
ConnString = "DRIVER={Micros oft Access Driver (*.mdb)}; DBQ=" & Server.MapPath( "employees.mdb" )
Nothing to do with your problem, but you should be using the native Jet
OLEDB provider instead of the ODBC driver:
ConnString = "Provider=Micro soft.Jet.OLEDB. 4.0;Data Source="
& Server.MapPath( "employees.mdb" )
The ODBC provider has been deprecated. Set my_conn = Server.CreateOb ject("ADODB.Con nection") my_conn.Open ConnString
set rs = server.CreateOb ject("ADODB.Rec ordset") %>
This asp has been working without major problems for about 2 years. On most occasions, a user can open the Access DB, make changes and close it without any problems. However, on two occasions, a problem has occurred after a user opened the Access DB.
What problem?
My only guess is that someone accesses the employee.asp, which queries the Access DB when the Access DB is opened and being changed. Once this occurs, the employee.asp delivers an error code and complains about the connection line of "my_conn.Op en ConnString".
What error code? What error message? You're asking us to solve your problem
blindfolded.
If I had to guess, and I do, I would guess that you have a permissions
problem. All database users, including the IUSR_MachineNam e account, need
filesystem read/write permissions on the folder containing the database
file. Users must be able to create, modify and delete the .ldb locking file
in the folder containing the database. It is not enough to grant permissions
for the database file.
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Thanks for the quick reply.
Almost all employees are set to read only, so I would assume that one
of these users created the query off the asp and that's the problem.
I'm not sure why, but I could never see the employee.ldb on the folder
so I never could check that. Thus, it most likely is the permissions
problem with the folder.
From memory, to answer your questions that I neglected to detail out
(sorry), the error message was:
Error Type: (0x80004005)
Unspecified error
employee.asp, line 6
Thus, it was pointing to the line of:
"my_conn.Op en ConnString"
that I was referring to but didn't detail out.
I'll chat with our IT group about setting the proper permissions.
Unfortunately, I haven't had much luck in the past describing what I
actually need since I'm obviuosly weak in this area.
If you have any specific advise I can pass on, I would appreciate it.
The four current groups are Administrators, Everyone, Managers, and
System under the Security tab. Your suggesting to add at least the
IUSR_MachineNam e account name.
I guess my main problem is that I'm not positive about the correct
combination settings to use for the web sharing, sharing and security
areas. My goal is that everyone can run the asp that accesses the mdb
but not be able to open or view the folder off any share, Managers can
open the share and change the mdb and Administrators obviously have
full control to all.
On Sun, 8 Aug 2004 14:05:30 -0400, "Bob Barrows [MVP]"
<re******@NOyah oo.SPAMcom> wrote: ziggs wrote: I have an Access 97 DB called employees.mdb within a NT security type folder. Other users have write privileges to this document to make updates. This Access DB is only used for an ASP called employee.asp that's within the same folder. Here's the connection string example:
<%@ Language=VBScri pt %> <% Dim my_conn, rs
ConnString = "DRIVER={Micros oft Access Driver (*.mdb)}; DBQ=" & Server.MapPath( "employees.mdb" )
Nothing to do with your problem, but you should be using the native Jet OLEDB provider instead of the ODBC driver:
ConnString = "Provider=Micro soft.Jet.OLEDB. 4.0;Data Source=" & Server.MapPath( "employees.mdb" )
The ODBC provider has been deprecated.
Set my_conn = Server.CreateOb ject("ADODB.Con nection") my_conn.Open ConnString
set rs = server.CreateOb ject("ADODB.Rec ordset") %>
This asp has been working without major problems for about 2 years. On most occasions, a user can open the Access DB, make changes and close it without any problems. However, on two occasions, a problem has occurred after a user opened the Access DB.
What problem?
My only guess is that someone accesses the employee.asp, which queries the Access DB when the Access DB is opened and being changed. Once this occurs, the employee.asp delivers an error code and complains about the connection line of "my_conn.Op en ConnString".
What error code? What error message? You're asking us to solve your problem blindfolded.
If I had to guess, and I do, I would guess that you have a permissions problem. All database users, including the IUSR_MachineNam e account, need filesystem read/write permissions on the folder containing the database file. Users must be able to create, modify and delete the .ldb locking file in the folder containing the database. It is not enough to grant permissions for the database file.
Bob Barrows
The .ldb file is created when the database is accessed & deleted after
you have finished with the .mdb file.
ziggs wrote: Thanks for the quick reply.
Almost all employees are set to read only, so I would assume that one of these users created the query off the asp and that's the problem. I'm not sure why, but I could never see the employee.ldb on the folder so I never could check that. Thus, it most likely is the permissions problem with the folder.
From memory, to answer your questions that I neglected to detail out (sorry), the error message was:
Error Type: (0x80004005) Unspecified error employee.asp, line 6
Thus, it was pointing to the line of:
"my_conn.Op en ConnString"
that I was referring to but didn't detail out.
I'll chat with our IT group about setting the proper permissions. Unfortunately, I haven't had much luck in the past describing what I actually need since I'm obviuosly weak in this area.
If you have any specific advise I can pass on, I would appreciate it. The four current groups are Administrators, Everyone, Managers, and System under the Security tab. Your suggesting to add at least the IUSR_MachineNam e account name.
I guess my main problem is that I'm not positive about the correct combination settings to use for the web sharing, sharing and security areas. My goal is that everyone can run the asp that accesses the mdb but not be able to open or view the folder off any share, Managers can open the share and change the mdb and Administrators obviously have full control to all.
On Sun, 8 Aug 2004 14:05:30 -0400, "Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> wrote:
ziggs wrote:
I have an Access 97 DB called employees.mdb within a NT security type folder. Other users have write privileges to this document to make updates. This Access DB is only used for an ASP called employee.asp that's within the same folder. Here's the connection string example:
<%@ Language=VBScri pt %> <% Dim my_conn, rs
ConnString = "DRIVER={Micros oft Access Driver (*.mdb)}; DBQ=" & Server.MapPath( "employees.mdb" )
Nothing to do with your problem, but you should be using the native Jet OLEDB provider instead of the ODBC driver:
ConnString = "Provider=Micro soft.Jet.OLEDB. 4.0;Data Source=" & Server.MapPath( "employees.mdb" )
The ODBC provider has been deprecated.
Set my_conn = Server.CreateOb ject("ADODB.Con nection") my_conn.Op en ConnString
set rs = server.CreateOb ject("ADODB.Rec ordset") %>
This asp has been working without major problems for about 2 years. On most occasions, a user can open the Access DB, make changes and close it without any problems. However, on two occasions, a problem has occurred after a user opened the Access DB.
What problem?
My only guess is that someone accesses the employee.asp, which queries the Access DB when the Access DB is opened and being changed. Once this occurs, the employee.a sp delivers an error code and complains about the connection line of "my_conn.Op en ConnString".
What error code? What error message? You're asking us to solve your problem blindfolded .
If I had to guess, and I do, I would guess that you have a permissions problem. All database users, including the IUSR_MachineNam e account, need filesystem read/write permissions on the folder containing the database file. Users must be able to create, modify and delete the .ldb locking file in the folder containing the database. It is not enough to grant permissions for the database file.
Bob Barrows
Yes, I realize that, but thanks for responding. When I open the .mdb,
I don't see the .ldb. I normally open the .ldb and it normally tells
me which computer has it open. Unfortunately, I don't see the .ldb
even when I have the .mdb open.
On Mon, 09 Aug 2004 08:37:29 -0600, joker <no*****@netzer o.com> wrote: The .ldb file is created when the database is accessed & deleted after you have finished with the .mdb file.
ziggs wrote:
Thanks for the quick reply.
Almost all employees are set to read only, so I would assume that one of these users created the query off the asp and that's the problem. I'm not sure why, but I could never see the employee.ldb on the folder so I never could check that. Thus, it most likely is the permissions problem with the folder.
From memory, to answer your questions that I neglected to detail out (sorry), the error message was:
Error Type: (0x80004005) Unspecified error employee.asp, line 6
Thus, it was pointing to the line of:
"my_conn.Op en ConnString"
that I was referring to but didn't detail out.
I'll chat with our IT group about setting the proper permissions. Unfortunately, I haven't had much luck in the past describing what I actually need since I'm obviuosly weak in this area.
If you have any specific advise I can pass on, I would appreciate it. The four current groups are Administrators, Everyone, Managers, and System under the Security tab. Your suggesting to add at least the IUSR_MachineNam e account name.
I guess my main problem is that I'm not positive about the correct combination settings to use for the web sharing, sharing and security areas. My goal is that everyone can run the asp that accesses the mdb but not be able to open or view the folder off any share, Managers can open the share and change the mdb and Administrators obviously have full control to all.
On Sun, 8 Aug 2004 14:05:30 -0400, "Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> wrote:
ziggs wrote:
I have an Access 97 DB called employees.mdb within a NT security type folder. Other users have write privileges to this document to make updates. This Access DB is only used for an ASP called employee.asp that's within the same folder. Here's the connection string example:
<%@ Language=VBScri pt %> <% Dim my_conn, rs
ConnStrin g = "DRIVER={Micros oft Access Driver (*.mdb)}; DBQ=" & Server.MapPath( "employees.mdb" )
Nothing to do with your problem, but you should be using the native Jet OLEDB provider instead of the ODBC driver:
ConnString = "Provider=Micro soft.Jet.OLEDB. 4.0;Data Source=" & Server.MapPath( "employees.mdb" )
The ODBC provider has been deprecated.
Set my_conn = Server.CreateOb ject("ADODB.Con nection") my_conn.Ope n ConnString
set rs = server.CreateOb ject("ADODB.Rec ordset") %>
This asp has been working without major problems for about 2 years. On most occasions, a user can open the Access DB, make changes and close it without any problems. However, on two occasions, a problem has occurred after a user opened the Access DB.
What problem?
My only guess is that someone accesses the employee.asp, which queries the Access DB when the Access DB is opened and being changed. Once this occurs, the employee.as p delivers an error code and complains about the connection line of "my_conn.Op en ConnString".
What error code? What error message? You're asking us to solve your problem blindfolde d.
If I had to guess, and I do, I would guess that you have a permissions problem. All database users, including the IUSR_MachineNam e account, need filesystem read/write permissions on the folder containing the database file. Users must be able to create, modify and delete the .ldb locking file in the folder containing the database. It is not enough to grant permissions for the database file.
Bob Barrows
That's the problem. Without the ldb file, multi-user activity is not
possible. Users of the database must be granted filesystem permissions on
the folder to enable them to create, modify and delete the ldb file when
they open the mdb file.
Bob Barrows
ziggs wrote: Yes, I realize that, but thanks for responding. When I open the .mdb, I don't see the .ldb. I normally open the .ldb and it normally tells me which computer has it open. Unfortunately, I don't see the .ldb even when I have the .mdb open.
On Mon, 09 Aug 2004 08:37:29 -0600, joker <no*****@netzer o.com> wrote:
The .ldb file is created when the database is accessed & deleted after you have finished with the .mdb file.
ziggs wrote:
Thanks for the quick reply.
Almost all employees are set to read only, so I would assume that one of these users created the query off the asp and that's the problem. I'm not sure why, but I could never see the employee.ldb on the folder so I never could check that. Thus, it most likely is the permissions problem with the folder.
From memory, to answer your questions that I neglected to detail out (sorry), the error message was:
Error Type: (0x80004005) Unspecified error employee.asp, line 6
Thus, it was pointing to the line of:
"my_conn.Op en ConnString"
that I was referring to but didn't detail out.
I'll chat with our IT group about setting the proper permissions. Unfortunately, I haven't had much luck in the past describing what I actually need since I'm obviuosly weak in this area.
If you have any specific advise I can pass on, I would appreciate it. The four current groups are Administrators, Everyone, Managers, and System under the Security tab. Your suggesting to add at least the IUSR_MachineNam e account name.
I guess my main problem is that I'm not positive about the correct combination settings to use for the web sharing, sharing and security areas. My goal is that everyone can run the asp that accesses the mdb but not be able to open or view the folder off any share, Managers can open the share and change the mdb and Administrators obviously have full control to all.
On Sun, 8 Aug 2004 14:05:30 -0400, "Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> wrote:
ziggs wrote:
> I have an Access 97 DB called employees.mdb within a NT security > type folder. Other users have write privileges to this document > to make updates. This Access DB is only used for an ASP called > employee.asp that's within the same folder. Here's the > connection string example: > > <%@ Language=VBScri pt %> > <% Dim my_conn, rs > > ConnString = "DRIVER={Micros oft Access Driver (*.mdb)}; DBQ=" > & Server.MapPath( "employees.mdb" )
Nothing to do with your problem, but you should be using the native Jet OLEDB provider instead of the ODBC driver:
ConnString = "Provider=Micro soft.Jet.OLEDB. 4.0;Data Source=" & Server.MapPath( "employees.mdb" )
The ODBC provider has been deprecated.
> Set my_conn = Server.CreateOb ject("ADODB.Con nection") > my_conn.Open ConnString > > set rs = server.CreateOb ject("ADODB.Rec ordset") %> > > This asp has been working without major problems for about 2 > years. > On most occasions, a user can open the Access DB, make changes and > close it without any problems. However, on two occasions, a > problem > has occurred after a user opened the Access DB.
What problem?
> My only guess is that > someone accesses the employee.asp, which queries the Access DB > when > the Access DB is opened and being changed. Once this occurs, the > employee.asp delivers an error code and complains about the > connection line of "my_conn.Op en ConnString".
What error code? What error message? You're asking us to solve your problem blindfolded.
If I had to guess, and I do, I would guess that you have a permissions problem. All database users, including the IUSR_MachineNam e account, need filesystem read/write permissions on the folder containing the database file. Users must be able to create, modify and delete the .ldb locking file in the folder containing the database. It is not enough to grant permissions for the database file.
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: aswinee |
last post by:
I am running Microsoft SQL Server 2000 - 8.00.760 Enterprise Edition
on Windows 2003 Enterprise Edition (NT 5.2 Build 3790:) I have 4CPU
and 8GB of RAM. I have AWE enabled, /pae /3gb switch is on in
boot.ini, In my errorlog I have noticed few times error messages as
"The SQL Server cannot obtain a LOCK resource at this time. Rerun your
statement when there are fewer active users or ask the system
administrator to check the SQL Server lock...
|
by: JMCN |
last post by:
hello-
i received an runtime error message: You tried to call Update or
CancelUpdate or attempted to update a Field in a recordset without
first calling AddNew or Edit. (Error 3020). when i look through my
code again, i thought that i called the Edit methode before i tried to
update the field.
thanks in advance, jung
here is the following code:
|
by: Mario Crevits |
last post by:
My name is Mario Crevits, I'm from Belgium (Roeselare) and I'm working with
Access97 for several years now. We are in an Access97-2000 migration
project. I'm writing a wizard for the end-users to automatically find and
convert their Access97 databases on a specific drive.
I want to convert the databases through VBA :
1. create an empty Access2000
2. set the right properties and references
3. import the objects (tables, queries,...
|
by: Nick Barr |
last post by:
Hi,
I am trying to gather stats about how many times a resource in our web
app is viewed, i.e. just a COUNT. There are potentially millions of
resources within the system.
I thought of two methods:
1. An extra column in the resource table which contains a count.
a. Each time a resource is viewed an UPDATE statement is run.
|
by: RayPower |
last post by:
I'm having problem with using DAO recordset to append record into a
table and subsequent code to update other tables in a transaction. The
MDB is Access 2000 with the latest service pack of JET 4. The system is
client/server, multiusers based. The MDBs are using record locking.
Here is part of the code:
Dim wkSpace As Workspace, db As Database
Dim rstTrans As DAO.Recordset
Set wkSpace = DBEngine.Workspaces(0)
| |
by: Peter Duniho |
last post by:
I searched using Google, on the web and in the newsgroups, and found nothing
on this topic. Hopefully that means I just don't understand what I'm
supposed to be doing here. :)
The problem:
I am trying to use the SaveFileDialog class to get a filename, which is
subsequently opened for writing (write access, read sharing, but using
read/write sharing doesn't make the problem go away anyway). Sometimes, on
the statement where I...
|
by: jsacrey |
last post by:
Hello everybody,
I've got a bit of a situation that I could use some guidance with if
possible. I work for an auditing firm where my users audit electronic
shipping data for customers to see if they've been overcharged for
shipments by truck and rail carriers.
99.9% of the time, one of our auditors needs to see all data sent by a
customer in datasheet view so that they can sort records in many
different ways looking for duplication...
|
by: Ramchandar |
last post by:
Hi,
I am creating reports using VBA code.
I have the same query in a querydef residing both in Access97 and Access2003. The result of this querydef is then moved to a table in Access97 and Access2003 respectively. The table in Access97 returns 874 rowcount, table in Access 2003 returns 1050 rowcount. In both the case the querydef is retrieving from the same database which resides in SQL Server 2003.
I executed the application Access97 and...
|
by: Roger |
last post by:
on sql 2005, I've got a view with select permission granted, the view
just "select * from table"
using odbc in access97, I linked this view and I create a query to
retrieve certain fields
the query properties are 'no locks' and dynaset record type
but just executing the query as a datasheet, locks some records in the
original sql server table
is this how it should work ? seems to me that it should not lock
anything
|
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...
|
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...
| |
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,...
|
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...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |