Forum Discussion
Euler314
Jan 18, 2024Copper Contributor
Permissions problem
I have an Access database that is linked to a SQL Server database that I created. I imported some tables from another SQL Server database but I'm not able to edit or insert any data to the linked ta...
olafhelper
Jan 19, 2024Bronze Contributor
but I'm not able to edit or insert any data to the linked tables.
Euler314 "not able" means what in detail? Do you get an error message and if, which one?
"Edit" is a strange context in context of SQL Server. Do you mean edit in a GUI of SSMS? Of course not possible.
You have to execute DML commands against the linked server.
- Euler314Jan 19, 2024Copper ContributorThank you for responding.
The tables are linked to an Access frontend. By "edit" I meant changing the data in the tables from within the Access frontend.
I found that the problem was that when I imported the tables to the second SQL Server database, the primary keys were lost. I didn't know that. I had to recreate the primary keys and after I did that then I was able to edit the records within Access and insert new ones.- olafhelperJan 22, 2024Bronze ContributorA primary key is for MS Access mandatory, otherwise you can modify anything.