Solved

Set up user to have only access to one view

Posted on 2011-09-22
3
272 Views
Last Modified: 2012-05-12
I am trying to set up an user to have access to only one view.  Is there a way to take all rights to all the database and table and give the right to the view only?  I would like to do this with the user login screen in SQL server Management Studio.  

Thanks
0
Comment
Question by:DowneyCity
3 Comments
 
LVL 18

Accepted Solution

by:
lludden earned 250 total points
ID: 36581153
Create a user in the database.
CREATE USER [MyLimitedUser] FOR LOGIN [MyLimitedUser] WITH DEFAULT_SCHEMA=[MyLimitedUser]
GRANT SELECT ON [dbo].[myView] TO [MyLimitedUser]

You can do this through the GUI also.
0
 
LVL 5

Expert Comment

by:zvytas
ID: 36581163
Yes, it is possible. Simply create new user with no right at all and grant select permission on the view in question:

GRANT SELECT ON <view> TO <user>
0
 

Author Closing Comment

by:DowneyCity
ID: 36581641
Understand the sql statement but would of like to see it done with the GUI.  Was able to figure it out from the statement.

thanks
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

If you having speed problem in loading SQL Server Management Studio, try to uncheck these options in your internet browser (IE -> Internet Options / Advanced / Security):    . Check for publisher's certificate revocation    . Check for server ce…
In this article I will describe the Backup & Restore 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.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

746 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

12 Experts available now in Live!

Get 1:1 Help Now