Solved

How to grant read-only access to the data in an application

Posted on 2015-01-21
6
78 Views
Last Modified: 2015-02-11
Hello All,

I will soon be decommissioning an application but this application will still need to be accessible by the users for historic purposes. I want the users to be able to view data only and I am thinking about my options on making this possible since I don't see any permissions setting in the application that will help me out on this.

The application is AD integrated and it points to a SQL database. It seems that the application have created SQL logins for the application users.

I was wondering if it would be possible to set the users to read-only by just assigning datareader role to their SQL logins.

Have someone come across to a similar situation?

Any help will be greatly appreciated.

Thanks!
0
Comment
Question by:LuiLui77
6 Comments
 
LVL 69

Expert Comment

by:ScottPletcher
Comment Utility
If it's contained with one database, you can set that db to read-only.

But, yes, you should also be able to limit users to read-only by removing their existing permissions and just giving them datareader permissions.
0
 
LVL 10

Expert Comment

by:Ray
Comment Utility
Used to do this all the time with a reporting application and YES, setting the SQL users to "datareader" will allow them only that option as long as that is the only checkbox checked (public would also be checked).
0
 
LVL 69

Expert Comment

by:ScottPletcher
Comment Utility
Permissions can be granted outside of a "check" on a GUI/screen.  Indeed, being a DBA, I *never* assign permissions using a GUI.  For standard roles and some permissions, the check mark will show up from the command.  But some command permissions don't have corresponding check marks, but they still give permissions.

In short, don't rely on "check marks" to determine all permissions that are in effect.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 50

Expert Comment

by:Lowfatspread
Comment Utility
are you sure the application doesn't use any stored procedures?
0
 

Accepted Solution

by:
LuiLui77 earned 0 total points
Comment Utility
After attempting setting the database to Read-Only mode I could not even log into the application, later I found that the application need read and write permissions on an activity log table. I contacted the application's support and they stated that the only way to accomplish ReadOnly permissions was by setting the permissions in the application level which I ended up on doing so, the only drawback is that the permissions settings in the application are not that explicit and you have to guess per say what are the permission you actually need.
0
 

Author Closing Comment

by:LuiLui77
Comment Utility
Answer were drew from experimenting and contacting the application's support.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
OPENDATASOURCE 8 30
Record open by another user 6 40
MS Access question 11 48
How to query LOCK_ESCALATION 4 37
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

6 Experts available now in Live!

Get 1:1 Help Now