473,416 Members | 1,557 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,416 software developers and data experts.

Cannot edit or delete rows of linked MS SQL table from MS Access

Hello Everybody,

There is SQL Server 2008 R2 database with MS Access front-end (linked ODBC tables). I can see all linked tables in MS Access and can add new rows. However, when trying to update or delete existing data, I got error: Process is stopped by Microsoft Jet because multiple users are trying to edit the same data simultaneously. There is no multiple users, also the table has primary key over int column. What can be reason of the issue?
Dec 22 '23 #1
3 26638
NeoPa
32,556 Expert Mod 16PB
Hi Efe.

Welcome to Bytes.com :-)

You say there aren't multiple users, but the system says there are. In this case I'm inclined to trust the system.

Not blindly, as systems can get things wrong. Nevertheless, multiple users means multiple connections or multiple uses across a single connection, and there are many ways a user can have a table/record open multiple times without realising it.

Without knowing all the details I cannot determine for you what the issue is, but here are some considerations and ideas that may help you find your way :
  1. Try restarting your system.
    Sometimes processes that you think have terminated, or even those you were never aware of, have connections open.
  2. Try your test again as soon as you can after restarting.
    That will make it less likely that other processes can get in the way.
  3. Check out the driver you're using. Is it the most up-to-date ODBC driver?
  4. If you have access to the data directly, via SSMS (SQL Server Management Studio) for instance, or know of someone who has such access and can help you, see if you can edit the data directly from there.
    Be sure to close down any open tables there before trying again from Access.
That's pretty-much all I can suggest for now, but good luck & please let us know if you make any progress.
Dec 22 '23 #2
isladogs
456 Expert Mod 256MB
Bear in mind that the other user(s) could be yourself trying to change data in more than one way at the same time
This can often lead to a write conflict error
Dec 24 '23 #3
jimatqsi
1,271 Expert 1GB
efe2023,
There's a very good chance that the problem stems from bit fields (yes/no fields in Access) that have null values. Try this. Create a query that pulls a single string or numeric field. Try to edit the field. If it works, expand your list of fields returned by the query, excluding yes/no columns. You will probably find that you can edit those fields.

To solve the problem in a way that allows you to query and edit the bit fields, you will need to do some SQL coding. You can do it in SQL Server Management System (SSMS) or in a passthrough query. What you need to to do is update any null value in a bit field to be either 0 or 1. You'll have to choose which is the best option for each column that needs this fix.

Here's some sample code, but you'll need to substitute the table and field names as needed.
Expand|Select|Wrap|Line Numbers
  1. UPDATE [dbo].[Customer]
  2.    SET [Active] = 0
  3.  WHERE ACTIVE=NULL
  4.  
If you're not familiar with SSMS, just create a pass-through query with the same connection string you use in your ODBC table connections.

Jim
Dec 26 '23 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: C.P. | last post by:
I need a script that will delete the first 100000 rows of a table. Is this possible?
7
by: smd | last post by:
Hello and thanks for taking the time to read this. I've looked all over the web and newsgroups and can't find a solution to my problem. I've posted this question to the Access 2000 group as well -...
0
by: Carla | last post by:
I have Access 2000. I have gotten one of my databases imported into it and created a query and report. Now when I go try to change a record, I am getting "updating data in a linked table is not...
2
by: jkw | last post by:
Hi - I created a linked table via ODBC to a SQL Server database. The table in SQL Server contained over 12,000,000 records. Later, I started a "Delete" query. When I realized that I was deleting...
5
by: Neil | last post by:
I am getting time-out errors when I try to perform a simple delete on a linked server. The command is: Delete From MyTable Where PKID=12345 I have tried executing this command directly from...
1
by: mgworek | last post by:
access xp, sql server 2000. Just converted entire database to sql and keeping access front end. Problem is only with one table. inserting a new record works fine. If I go back to that record...
3
by: nzaiser | last post by:
Hello! This is my first time asking a question here, so please bear with me if I seem 'unconventional!' My issue is this..... OS: Windows_NT App: MS Access 2000 (also in 2003) ODBC linked...
0
by: Duke Slater | last post by:
I have a user who has created an Access 2007 database with one linked table to SQL Server 2005. He wants to purge the linked table and repopulate it, but gets the 3086 error when running a delete...
2
by: Chary314 | last post by:
Dear all, I just spent quite a lot of time investigating one problem, which seems to be a bug (which I wasn't able to google). So I am just posting a bug report here: BUG REPORT: PROBLEM...
1
by: kkshansid | last post by:
i have a dbf file which i linked in access and running sql query through vba but delete query only marks for deletion.is there any method to delete this record permanently as in foxpro after deletion...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
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
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...
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,...
0
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...

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.