Solved

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

Posted on 2015-01-21
6
82 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
ID: 40562567
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
ID: 40562574
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
ID: 40562595
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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
LVL 50

Expert Comment

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

Accepted Solution

by:
LuiLui77 earned 0 total points
ID: 40594831
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
ID: 40602727
Answer were drew from experimenting and contacting the application's support.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Server Determine if date is recurrance date 3 48
Display multiple images in report 12 106
Slow SQL query 12 55
TypeError: Users.save is not a function 3 41
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This article describes some very basic things about SQL Server filegroups.
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…

867 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

15 Experts available now in Live!

Get 1:1 Help Now