Solved

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

Posted on 2015-01-15
3
259 Views
Last Modified: 2015-01-19
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
Comment
Question by:cotton9
3 Comments
 
LVL 142

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 250 total points
ID: 40552949
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
 
LVL 5

Accepted Solution

by:
Leon Kammer earned 250 total points
ID: 40552977
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
 
LVL 49

Expert Comment

by:Gustav Brock
ID: 40552998
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

863 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

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now