Solved

Access User can't modify a record added to a linked SQL Server table

Posted on 2016-10-25
6
50 Views
Last Modified: 2016-10-25
I have a linked table in Microsoft Access 2003 that's linked to a table in SQL Server 2012.  The user specified in the connection has datareader permissions for the database in SQL Server, and for this one table has Grant permissions for Select, Update, and delete.  I can modify existing records and add a new records using this linked table, but I can't modify or delete records that *I* added using the linked table.  It gives me a message that the record was edited by another user when I try.  How can I fix this?
0
Comment
Question by:Declan_Basile
  • 3
  • 3
6 Comments
 
LVL 22

Expert Comment

by:Kelvin Sparks
ID: 41859394
Firstly, you don't specify the INSERT grant - is that present?

Secondly, how are you altering these records - via VBA, directly into the linked table - or via a form?


Kelvin
0
 
LVL 1

Author Comment

by:Declan_Basile
ID: 41859408
The user in the connection string has Insert, update, and delete permissions granted for this table.  I'm trying to update the record directly in the linked table and I'm getting a write conflict.  Also, I found out that if I add a record to the table under sa in SQL Server I still can't delete it or modify it in the linked table.  However, already existing records I can modify directly in the linked table.
0
 
LVL 1

Author Comment

by:Declan_Basile
ID: 41859417
I think I figured it out.  The table had a series of bit fields with no default values and "allow null" set.  I changed these fields to have a default value of "0" and now the users can edit and delete new records.  It wouldn't allow users to modify or delete records if the record had a null value for a bit field.  Did you ever hear about this limitation?
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
LVL 22

Accepted Solution

by:
Kelvin Sparks earned 500 total points
ID: 41859420
Yes, an Access record is "read only" if it has a bit value that is not set - it must be o or 1 to allow the record to be edited. Well done for sorting it out.


Kelvin
0
 
LVL 22

Expert Comment

by:Kelvin Sparks
ID: 41859422
It's a common oversight when migrating a database from Access to SQL Server. Generally any table built in SQL will have a default value set at the table level and be set to NOT NULL.


Kelvin
0
 
LVL 1

Author Closing Comment

by:Declan_Basile
ID: 41859490
Thanks.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

776 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