Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 282
  • Last Modified:

Create read-only MS Access connection to MS SQL Server (using full-rights SQL login)

Hello,

I would like to give an employee the ability to run SELECT queries w/ Access to a linked SQL Server database, but I don't want her to be able to edit any of the data.

I know I could setup a read-only user in SQL Server Management, and use Access to connect through that user, but we're in a situation where we can't create another user.  We're forced to use an existing SQL Server user login that has full rights.  It's dumb, but our database is managed remotely by a 3rd party, and they want to charge an outrageous fee for maintenance and support of additional logins.  

Is there another way I can prohibit the user from editing the SQL Server data using Access?
0
cotton9
Asked:
cotton9
2 Solutions
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
this is not possible.
a login with full permissions cannot be restricted to read-only to a user which will be using it in ms access like this.
0
 
Leon KammerCommented:
Unfortunately, there's no way to achieve read-only connection string in MS SQL Server.

You can create a new Database on the server and restore the current DB to a secondary DB and then connect to this DB.

If this is not possible, you can create a subscription on the Server to replicate the data using a local instance of SQL Server Express and have the user connect to this DB as Read only.

There are other options such as using SSIS to create an ETL Process to submit to MS Access.

Either way, there is no direct way of specifying Read Only Mode within the Connection String without pulling the data off the server.

Cheers

Leon
0
 
Gustav BrockCIOCommented:
If the user in general plays nice (= does what you tell her and does not what you tell her not to do) and you just are looking for a method for her to work safely with the data, then you could create read-only views on the server as simple select queries for each table in question.

/gustav
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now