简体   繁体   中英

MS Access Linked Tables To SQL Server 2019 ODBC Error

I have migrated MS Access 2016 tables to SQL Server 2019 database, and I have made tables as linked tables with Windows authentication. So, the front end is MS Access and the back end is MS SQL Server. Everything works fine until I want to give permissions read only to some domain users, but the connection will fail and I can't connect to the tables.

The only solution I have found is give all users ownership of the database that they can link the table.

The question is: Is there anyway to give read only permission to a specific user on the domain and keep the ODBC connection valid?

I'm going to assume that your DSN connects to SQL Server using a specific login. You would need to switch the DSN to use windows authentication so that each users credentials are used. Doing this would authenticate against the SQL Server database using their domain account which honors the SQL Server db permissions.

This does have the caveat that you'd also need to create logins on the SQL Server for each user.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM